container/image id is given as nil. 

For a new_resource id is returned to be nil. So ignoring the check. 
Also the -notrunc is deprecated. moving it to --no-trunc.