As part of my deployment strategy, I am managing Docker containers with Upstart.
To do that, I need to pull an image from a registry and create a named container (as suggested on Upstart script to run container won't manage lifecycle )
Is there a way to create the container without first running the image? I don't want to have to start a container (which may introduce side effects), stop it, and then manage elsewhere.
For example, something like:
docker.io create -e ENV1=a -e ENV2=b -p 80:80 --name my_first_container sample/containe