consul中registrator服务器安装之后测试创建容器时报错:docker: Error response from daemon: No command specified.

[root@192 ~]# docker run -itd -p:83:80 --name web1 -h test1 nginx
docker: Error response from daemon: No command specified.
See 'docker run --help'.
[root@192 ~]# docker ps -a
CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS          PORTS     NAMES
d6a0734734dd   gliderlabs/registrator:latest   "/bin/registrator --…"   45 seconds ago   Up 44 seconds             registrator
[root@192 ~]# docker images
REPOSITORY               TAG       IMAGE ID       CREATED       SIZE
nginx                    latest    d3efa07f874b   9 days ago    132MB
gliderlabs/registrator   latest    3b59190c6c80   5 years ago   23.8MB

consul中registrator服务器安装之后测试创建容器时报错:docker: Error response from daemon: No command specified.

 删除原来创建的镜像,重新创建测试容器

[root@192 ~]# docker rmi nginx:latest 
Untagged: nginx:latest
Deleted: sha256:d3efa07f874b12074c1c016fa22e13aad93bb67d0334866d1a058194fc92c403
Deleted: sha256:22634550c2643cd024a16a6ab30fd87a8d3b52545f93654f971a89ebd547af0c
[root@192 ~]# docker images
REPOSITORY               TAG       IMAGE ID       CREATED       SIZE
gliderlabs/registrator   latest    3b59190c6c80   5 years ago   23.8MB
[root@192 ~]# docker run -itd -p:83:80 --name web1 -h test1 nginx
Unable to find image 'nginx:latest' locally
^C
[root@192 ~]# docker run -itd -p:83:80 --name web1 -h test1 nginx
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
b380bbd43752: Pull complete 
fca7e12d1754: Pull complete 
745ab57616cb: Pull complete 
a4723e260b6f: Pull complete 
1c84ebdff681: Pull complete 
858292fd2e56: Pull complete 
Digest: sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36
Status: Downloaded newer image for nginx:latest
ae8563fd8ee0603a16dc98b8c7a4e18b53cfcc42ba7adc3914f9fe1622edc01b

consul中registrator服务器安装之后测试创建容器时报错:docker: Error response from daemon: No command specified. 

上一篇:new function


下一篇:qt 如何安装 Debuggers 调试器 ?