docker notes
After run docker build, REPOSITORY and TAG show .
If you reassign a tag or image name to another image, your image will lose its tag or name. It’s really that simple. Your myapp repo image tagged latest with ID a38da0bd9e0b used to be named and tagged on image ID e4209f97e819.
docker tag e4209f97e819 myName/myApp:latest
map docker port
docker run -i -t -d -p 9999:80 –name lamp fred/centos6-lamp /bin/bash
mount directory
docker run -i -t -d -p 8888:80 -v /Users/wangweigang/workspace:/var/www/html fred/ubuntu:v1 /bin/bash
Failed to get D-Bus connection: Operation not permitted - CentOS 7
$ docker run –privileged -d -ti -e “container=docker” -v /sys/fs/cgroup:/sys/fs/cgroup centos:7 /usr/sbin/init
$ docker exec -it 6dd323 /bin/bash