docker常用命令

本文介绍了如何搭建Docker私有仓库,并提供了实战参考链接,帮助读者掌握管理和部署容器镜像的技巧。
摘要由CSDN通过智能技术生成

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镜像
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值