赞
踩
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
systemctl start docker
systemctl enable docker
ps -ef|grep docker
root 4483 1 1 22:15 ? 00:00:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root 4625 1709 0 22:15 pts/1 00:00:00 grep --color=auto docker
docker ps -a
sudo docker run hello-world
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3838f7b24d0c hello-world "/hello" About a minute ago Exited (0) About a minute ago great_thompson
docker rm 3838f7b24d0c
curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose -v
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。