1. 程式人生 > >docker命令

docker命令

docker ges log size create contain docker命令 test -name

1.查看image

[root@ ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
k1995/scrapy-cluster cralwer-2.0.4 e3be52ca0a5a 2 days ago 159MB
k1995/scrapy-cluster cralwer-2.0.3 5a5981af4f28 6 days ago 159MB
k1995/scrapy-cluster crawler-1.0.1.test 9070c3e02897 3 weeks ago 159MB

k1995/scrapy-cluster crawler-1.0.0.test bcb3a7a0f485 3 weeks ago 159MB

2.創建container

[root@ ~]# docker create --name="general2" e3be52ca0a5a general

3.查看container

[root@ ~]# docker ps -a

4.啟動container

[root@ ~]# docker start general

docker命令