Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected – failed to create shim task: OCI runtime create failed:

huangapple go评论55阅读模式
英文:

Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - failed to create shim task: OCI runtime create failed:

问题

当我使用以下命令时出现错误:

docker run -d -it --restart=always --name webapp5 -v /srv/fedena:/opt/fedena/ -p 82:80 -p 3333:33 mywebapp zhs

Docker:守护程序的错误响应:无法创建shim任务:OCI运行时创建失败:runc创建失败:无法启动容器进程:exec:“zhs”:在$PATH中找不到可执行文件:未知。

英文:

when i use docker run -d -it --restart=always --name webapp5 -v /srv/fedena:/opt/fedena/ -p 82:80 -p 3333:33 mywebapp zhs

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "zhs": executable file not found in $PATH: unknown.

答案1

得分: 1

这通常是由于在作业中传递给其中一个次要服务容器的错误命令而引起的。

错误消息是由于次要服务容器崩溃或过早退出而引起的。这意味着CircleCI无法从Docker守护程序获取PID,并以失败退出。

"Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - failed to create shim task"的错误消息指示在Docker中创建容器时出现了问题。这个错误可能有多种原因,但是以下是一些你可以检查的事项:

检查你用于创建容器的任何Docker镜像是否已损坏或删除。如果一个镜像丢失或损坏,Docker可能无法成功创建容器。尝试重新下载镜像并重新构建容器。

英文:

This usually occurs due to a bad command being passed to one of the secondary service containers in your job.

The error message occurs due to the secondary service container crashing or exiting prematurely. This means CircleCI cannot get the PID from the Docker daemon and exits with a failure.

Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - failed to create shim task

The error message "error invoking remote method 'docker-start-container': error : (http code 400) unexpected - failed to create shim task : oci runtime create failed : runc create failed: unable to start container process : error during container init: error mounting" indicates that there was an issue creating the container in Docker. There could be a variety of causes of this error, but here are a few things you can check:

Check if any of the Docker images you used to create the container have been corrupted or removed. If an image is missing or corrupted, Docker may not be able to create the container successfully. Try redownloading the images and building the container again.

huangapple
  • 本文由 发表于 2023年5月22日 13:08:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76303174.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定