docker 私有仓库的搭建和实战参考:
https://www.jb51.net/article/156183.htm
#ubuntu 系统环境安装docker参考链接:
https://www.jianshu.com/p/bc08d38095bc
#启动docker
systemctl start docker
#设置开机自启 docker
systemctl enable docker
#重启docker:
systemctl restart docker.service
#停止docker
systemctl stop docker
#查看docker状态:
systemctl status docker
#开机启动:
systemctl enable docker
#查看docker帮助文档:
docker --help
#查看docker概要信息
docker info
#docker运行私有仓库
docker run --name docker-registry -d -p 5000:5000 registry
#重启服务器后先运行私有仓库,如果提示
#docker: Error response from daemon: Conflict. The container name "/docker-registry" is already in use by container ....(容器id)
#先停止私有仓库
docker container stop ...(容器id)
#再启动私有仓库
docker container start ...(容器id)
#tomcat
#下载tomcat:
docker pull tomcat
#查看本地镜像
docker images
#运行tomcat镜像