docker常用命令
docker-machine start id
docker pull lizhien/centos7-lnmp
docker commit develop lizhien/centos7-lnmp
docker push lizhien/centos7-lnmp
docker run —-name develop p80:80 -p3306:3306 -v /Users/zj-db0979/docker:/docker -d lizhien/centos7-lnmp:latest
docker exec -it id bash
VBoxManage modifyvm default –natpf1 “nginx,tcp,,20080,,10080”
boot2docker ssh,密码tcuser docker
sudo -I
/var/lib/boot2docker/profile
EXTRA_ARGS='--label provider=virtualbox --insecure-registry 192.168.1.10:5000'