赞
踩
目录
yum update
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
- systemctl enable docker
-
- (设置docker开机自动启动)
- systemctl enable docker
docker --version
docker search mysql
拉取mysql
docker search mysql
拉取nacos
docker pull nacos/nacos-server
docker pull nacos/nacos-server
docker run -d --name nacos -p 8848:8848 -p 9848:9848 -p 9849:9849 --privileged=true -e MODE=standalone --restart=always nacos/nacos-server
docker ps
docker ps -a
docker stop +容器id
docker rm +容器id
docker logs -f 容器id
docker images
docker rmi +镜像id
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。