Verify we have a container id before running a command