赞
踩
uname -r
yum update -y
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum list docker\
;
yum search socker
yum list docker-ce --showduplicates | sort -r
yum install docker-ce-18.06.1.ce -y
systemctl start docker
systemctl enable docker
docker version
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
sudo mkdir -p /etc/docker
- sudo tee /etc/docker/daemon.json <<-'EOF'
- {
- "registry-mirrors": ["https://hrkjtvkd.mirror.aliyuncs.com"]
- }
- EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
docker info
配置完阿里云镜像加速器之后,安装mysql,tomcat之类的服务器就非常快速了!!!
https://hub.docker.com/
docker pull tomcat:8.0.52
不加“:8.0.52”则会下载最新版本latest
docker images
docker rmi IMAGE ID
docker ps
docker ps -a
docker logs CONTAINER ID
docker stop NAMES
docker start NAMES
docker restart NAMES
docker exec -it NAMES /bin/bash
docker rm -f CONTAINER ID
“-f”是删除正在运行的,不加 “-f”是删除停止状态的
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。