Ubuntu上配置docker的开发环境

1 安装docker

sudo apt-get update 
sudo apt-get install     apt-transport-https     ca-certificates     curl     software-properties-common
curl -fsSL http://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
     $(lsb_release -cs) \
     stable"
sudo apt-get update
sudo apt-get install docker-ce

2 安装docker-machine

docker-machine方便管理分布式的docker环境

curl -L https://github.com/docker/machine/releases/download/v0.12.1/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&     chmod +x /tmp/docker-machine &&     sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

其中这个0.12.1需要去上面github看最新版是啥

 

Leave a Reply

Your email address will not be published. Required fields are marked *