Error Response from daemon: No Command Specified
[root@test3 containers]# docker run -itd –name=container4 ubuntu-ssh-20190622
docker: Error response from daemon: No command specified.
See ‘docker run –help’.
Try other images and find out whether you can create containers or not. The answer to the question is obvious:
[root @ test3 containers] # docker images
the REPOSITORY TAG IMAGE ID CREATED the SIZE
ubuntu – SSH – 20190622 latest af84d755fccd 37 Minutes line 240 MB
ubuntu – SSH – 20190622 ansible e91bf9461302 21 hours line 240 MB
ubuntu latest 4 c108a37151f 4 days a line 64.2 MB
busybox latest e4db68de4ff2 8 days line 1.22 MB
HTTPD latest e77c77f17b46 11 days line 140 MB
Without CMD command, use docker inspect [mirror name] to see if the create container image cannot be created, if the CMD inside is null, and if the other one exists. The solution is to add:
if my mirror name:
[root@test3 containers]# docker create ubuntu-ssh-20190622:ansible /bin/bash
163f0d4046c4282da375344ca871a83bf1cfe175b73acf178a58138c315a922a
[root@test3 containers]# docker run -itd –name=container4 ubuntu-ssh-20190622
docker: Error response from daemon: No command specified.
See ‘docker run –help’.
Try other images and find out whether you can create containers or not. The answer to the question is obvious:
[root @ test3 containers] # docker images
the REPOSITORY TAG IMAGE ID CREATED the SIZE
ubuntu – SSH – 20190622 latest af84d755fccd 37 Minutes line 240 MB
ubuntu – SSH – 20190622 ansible e91bf9461302 21 hours line 240 MB
ubuntu latest 4 c108a37151f 4 days a line 64.2 MB
busybox latest e4db68de4ff2 8 days line 1.22 MB
HTTPD latest e77c77f17b46 11 days line 140 MB
Without CMD command, use docker inspect [mirror name] to see if the create container image cannot be created, if the CMD inside is null, and if the other one exists. The solution is to add:
if my mirror name:
[root@test3 containers]# docker create ubuntu-ssh-20190622:ansible /bin/bash
163f0d4046c4282da375344ca871a83bf1cfe175b73acf178a58138c315a922a