博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Docker] Docker Client in Action
阅读量:4641 次
发布时间:2019-06-09

本文共 678 字,大约阅读时间需要 2 分钟。

Pull the docker image:

docker pull hello-world

 

Show all the images:

docker images

 

Remove the image:

docker rmi 

 

Run the image:

docker run hello-worlddocker run -p 80:80 kitematic/hello-world-nginx //Run kitematic/hello-world-nginx image on (-p) port (local)80:80(to nginx 80)

Once run the images, you can see the webpage the your docker site url.

 

List all the running containers:

docker ps

 

List all the containers:

docker ps -a

 

Remove the container:

docker rm 

After delete container, the images will still be left, if you want to delete the image

just do `docker rmi <iamge_id>`

 

Stop the container:

docker stop 

 

转载于:https://www.cnblogs.com/Answer1215/p/5429169.html

你可能感兴趣的文章
51nod1265四点共面
查看>>
BeautifulSoup的一些方法
查看>>
How Many Answers Are Wrong
查看>>
STL --> find()和find_if()
查看>>
LTE中的PUCCH(转)
查看>>
自己动手写个小框架之四
查看>>
Spring RestTemplate 中文乱码问题
查看>>
使用Maven为SpringBoot项目打包
查看>>
android防止按钮连续点击方案之AOP
查看>>
#35 string(缩点+动态规划)
查看>>
踩的坑 里面包含着血和泪 踩坑的时候更新
查看>>
unrecognized service
查看>>
线性基总结
查看>>
Win7删除文件时,提示“操作无法完成,因为其中的文件夹或文件已在另一程序中打开”...
查看>>
正则表达式 常用的通配符
查看>>
哈希表及哈希表查找相关概念(转)
查看>>
IOC基础
查看>>
html的a链接的href怎样才另起一个页面,一个页面调到另一个html页面
查看>>
NFS部署教程
查看>>
机器学习技法总结(一):支持向量机(linear support vector machine,dual support vector machine)...
查看>>