docker-machine-配置

docker-machine ssh default “echo ‘EXTRA_ARGS=\”–registry-mirror=https://5ybkvoib.mirror.aliyuncs.com\”‘ | sudo tee -a /var/lib/boot2docker/profile”

docker run -d -it -p 8888:8888 centos /bin/bash

docker run -p 80:80 -p 3306:3306 -v /e/docker/www:/var/www -v /e/docker/apache2.conf:/etc/apache2/apache2.conf -v /e/docker/my.cnf:/etc/mysql/my.cnf -t -i linode/lamp /bin/bash

docker run -d -it -p 8888:8888 centos:latest
docker ps
docker exec -it 53d7794001f6 bash
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

You May Also Like

About the Author: DesertFish

发表评论

电子邮件地址不会被公开。 必填项已用*标注