安装docker
说明
解决普通用户安装docker的权限
统一时间配置
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
安装docker、docker compose
安装docker,并且不适用root启动
sudo yum install -y docker sudo usermod -aG docker ec2-user sudo service docker start sudo systemctl enable docker chkconfig docker on #这个步骤也可以让dockers开机启动 sudo reboot -h now
安装docker-compose
参看如下文章
https://docs.docker.com/compose/install/#install-compose
amazon ami 安装docker,修改 docker运行权限
http://cloud.51cto.com/art/201412/460142.htm
开始:(这样安装docker也可以的)
sudo yum install docker-io sudo service docker start sudo usermod -aG docker ec2-user sudo chkconfig docker on
结束:
sudo chmod +x /usr/local/bin/docker-compose docker-compose
相关推荐
changecan 2020-11-19
changecan 2020-09-22
王道革 2020-11-25
bwyyziq 2020-11-22
pigsmall 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13
WanKaShing 2020-11-12
yangkang 2020-11-12
滴水穿石点石成金 2020-11-12
张荣珍 2020-11-12
wuxunanjing 2020-11-11
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
yangkang 2020-11-09
worldsnow 2020-11-06
MichaelJScofield 2020-11-06