docker run ubuntu:14.04 /bin/echo 'Hello world'
docker ps -a
docker logs -f image_name
docker stop image_name
docker images
docker rmi image_name:version
docker search keyword
docker pull image_name
docker commit -m ‘comment’ -a ’author’ image_id image_name:version
cd $(dockerfile pwd)
docker build -t going1k/lnmp:v1 .
docker run --name lnmp -v /Users/going1000/development:/var/www:rw -p 80:80 -p 2200:22 -d g1k_lnmp:v1.1 /sbin/my_init --enable-insecure-key
osx mounting volumnes
只能 mount 非系统目录
> http://viget.com/extend/how-to-use-docker-on-os-x-the-missing-guide