我的docker常用命令
程序员文章站
2022-03-12 16:57:44
...
#查看版本
[[email protected] ~]# docker version
#查看docker更多信息
[[email protected] ~]# docker info
#看镜像
[[email protected] ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
menglingzhi/new-api-gateway 2.0.3 342660e7c6c5 About an hour ago 283MB
smart/new-api-gateway 2.0.3 342660e7c6c5 About an hour ago 283MB
smart/new-api-gateway latest 342660e7c6c5 About an hour ago 283MB
openjdk 8-jdk-alpine a3562aa0b991 16 months ago 105MB
[[email protected] ~]# docker tag smart/new-api-gateway menglingzhi/new-api-gateway:2.0.3
#运行镜像
[[email protected] ~]# docker run -itd smart/new-api-gateway:latest
#看运行的镜像
[[email protected] ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0573ed9ebead smart/new-api-gateway:latest "sh -c 'java $JAVA_O…" 32 minutes ago Up 32 minutes dreamy_bouman
ae5f9c044ad0 499734f11656 "/bin/sh" About an hour ago Up About an hour wonderful_gagarin
3ceb7b58148b a3562aa0b991 "/bin/sh" 2 hours ago Up 2 hours modest_margulis
[[email protected] ~]# docker exec -it wonderful_gagarin /bin/sh
#提交到dockerhub
[[email protected] ~]# docker login
[[email protected] ~]# docker push menglingzhi/new-api-gateway:2.0.3
上一篇: JAVA(杂记一)
推荐阅读
-
nginx 监听了两个端口80和81,但是我找不到81的配置!!
-
我做的一个websocket的demophp server
-
在一个php中,我定义了两个表单,当第一个表单提交后,生成了第二个表单,提交第二个表单后,就取不到第一个表单的数据了,该怎么办?
-
基于docker的CI有什么教程?
-
PHP fwrite 函数输出的文本编码为ANSI、小弟我需要UTF-8
-
解决Mac下 docker 无法 ping 通宿主机的问题
-
17年巨流行巨新潮新出的vivo x9手机壳,你猜我见过..
-
我 一个虎扑上的京东活跃用户
-
如何小弟我的php不支持网址传值
-
我是怎么学习asp的给非专业的asp爱好者_PHP