Today Docker Version 1.3 is was released and is available in repositories.
It introduces the new command exec
. It makes tools like nsinit and nsenter obsolete. Entering running container becomes possible with Docker itself and i like this very, very much. Docker’s exec
command allows executing additional process within the container, e.g.
docker exec myContainer -it bash
The example above attaches to the running container “myContainer”. Another new interesting command is docker create
docker create
#creates container out of image like docker run, but without running it. So
docker run some/image
it is the same like
$CONTAINER_ID=$(docker create -t -i ubuntu bash)
docker start -a -i $CONTAINER_ID
Have fun!
P.S. my Docker
docker info
#------------
...
Execution Driver: native-0.2
Kernel Version: 3.1.0-1-amd64
Operating System: Debian GNU/Linux 7 (wheezy)