//===
$ docker pull repo:tag
$ docker commit -m="msg" container_name_or_id dockerhub_username/repo:tag
$ docker commit --help
# show process for container
$ docker ps
$ docker ps -a
$ docker rm container-name
$ docker rm container-id
# docker top --help
Usage: docker top CONTAINER [ps OPTIONS]
Lookup the running processes of a container
# build image from the current directory
$ docker build -t imgname .
$ docker images
$ docker rmi img-tag
$ docker rmi img-id
# run an image , start/stop container
$ docker run -p 27017:27017 -d --name container_name imgname
$ docker stop container_name
$ docker start container_name
$ docker run -it --rm --name mypy python:2.7 bash
http://it.3hd.me/2015/03/docker-image-for-python.html
//=== daemon
# in Ubuntu 14.04, use docker.io instead of docker
$ sudo service docker.io restart
$ sudo docker.io -d & [???]
沒有留言:
張貼留言