Docker执行错误报错--Error response from daemon: No command specified
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker执行错误报错--Error response from daemon: No command specified相关的知识,希望对你有一定的参考价值。
参考技术A 在docker中执行 docker run -it imageid后提示错误如下:奇怪的是当我执行启动Ubuntu镜像的时候并没有报错,找了半天资料发现在启动centos这个镜像的时候需要在docker命令后面指定命令参数
sudo docker run -t -i 87e5b6b3ccc1 /bin/bash执行完毕后进入了镜像:
Docker push 报错:received unexpected HTTP status: 500 Internal Server Error
现象描述
将镜像推送到私有仓库,出现错误“received unexpected HTTP status: 500 Internal Server Error”
[root@docker ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/nginx 1.18.0 b5390718bd8e 6 days ago 132.8 MB docker.io/registry latest 2d4f4b5309b1 4 months ago 26.22 MB [root@docker ~]# docker tag docker.io/nginx:1.18.0 192.168.1.31:5000/nginx:1.18.0 [root@docker ~]# docker push 192.168.1.31:5000/nginx:1.18.0 The push refers to a repository [192.168.1.31:5000/nginx] 350c442bd17b: Retrying in 1 second 11ebfd90bb46: Retrying in 1 second 77a84e783709: Retrying in 1 second 8ea8cf9de1a9: Retrying in 1 second d0fe97fa8b8c: Retrying in 1 second received unexpected HTTP status: 500 Internal Server Error
解决办法:
关闭SELinux。
临时关闭SELinux:
[root@docker ~]# setenforce 0
永久关闭,重启后生效:
[root@docker ~]# sed -i ‘s#SELINUX=enforcing#SELINUX=disabled#g‘ /etc/selinux/config [root@docker ~]# egrep ‘^SELINUX=‘ /etc/selinux/config SELINUX=disabled
关闭SELinux 之后, docker push 就可以了。
[root@docker ~]# docker push 192.168.1.31:5000/nginx:1.18.0 The push refers to a repository [192.168.1.31:5000/nginx] 350c442bd17b: Pushed 11ebfd90bb46: Pushed 77a84e783709: Pushed 8ea8cf9de1a9: Pushed d0fe97fa8b8c: Pushed 1.18.0: digest: sha256:4528b7efb5e09b3ef22a4a049e839164d50ccac1aaf3170ac75fe12fd1181f6b size: 1362
以上是关于Docker执行错误报错--Error response from daemon: No command specified的主要内容,如果未能解决你的问题,请参考以下文章
docker An error occurred 虚拟化错误解决
docker容器内运行pytorch多gpu报错 RuntimeError: NCCL Error 2: unhandled system error
Docker push 报错:received unexpected HTTP status: 500 Internal Server Error
Docker报错:An error occurred trying to connect:Post http://localhost:2375/......