简体   繁体   English

无法在 docker 中关闭容器:

[英]failed to shutdown container in docker:

when im trying to build an image with command docker build im getting this error当我尝试使用命令 docker build 构建图像时,我收到此错误

im using windows docker desktop我正在使用 windows docker 桌面

The command '/bin/sh -c yarn install --production' returned a non-zero code: 4294967295: failed to shutdown container: container 1842716825b498d7be9ed514a4839dfc528caafe8f906018c93842517f60635e encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running.命令“/bin/sh -c yarn install --production”返回了一个非零代码:4294967295:关闭容器失败:容器 1842716825b498d7be9ed514a4839dfc528caafe8f906018c93842517f60635e 在 hcsshim::System::waitBackground: call4948a 8387 期间遇到错误:具有指定标识符的虚拟机或容器未运行。 (0xc0370110): subsequent terminate failed container 1842716825b498d7be9ed514a4839dfc528caafe8f906018c93842517f60635e encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): 随后终止失败的容器 1842716825b498d7be9ed514a4839dfc528caafe8f906018c93842517f60635e 在 hcsshim::System::waitBackground 期间遇到错误:Windows 系统调用失败:虚拟机或容器未运行具有指定的标识符(0xc0370110) (0xc0370110)

how this error be resolved如何解决此错误

This must be due to windows host failure on docker call when try to shut down the container这一定是由于 windows host failure on docker call when try to shut down the container

Try by restarting docker demon尝试重启 docker demon

sudo service docker restart

Check the status of the Docker containers:检查 Docker 容器的状态:

docker ps -a

stop and remove it:停止并删除它:

docker stop <container-id>
docker rm <container-id>

Then try by building the image again.然后再次尝试构建图像。 If the problem still persists, consider upgrading to the latest version of Docker or clear docker cache or如果问题依旧,考虑升级到最新版本Docker或者清除docker缓存或者

docker system prune

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 sbt 在运行 play docker 容器时下载失败 - sbt failed download in running play docker container Windows上的“ docker-compose up”失败,并出现Mysql容器步骤错误 - “docker-compose up ” on Windows failed with error on Mysql container step sqlserver连接因docker容器上运行的jasperserver而失败? - Sqlserver connection failed from jasperserver running on docker container? Traefik:v2 Windows Container 无法检索到 docker 客户端和服务器主机的信息 - Traefik:v2 Windows Container Failed to retrieve information of the docker client and server host Windows上的Docker:失败:container_linux.go:344:启动容器进程导致“ exec:\\”。/gradlew \\”:stat ./gradlew:没有此类文件或目录” - Docker on Windows: failed: container_linux.go:344: starting container process caused “exec: \”./gradlew\“: stat ./gradlew: no such file or directory” docker容器中的angular 2应用失败。 无法执行启动脚本。 - angular 2 app in docker container failing. Failed to exec start script. Windows Server上的Docker容器 - Docker container on windows server 在Windows中运行Docker容器 - Run a docker container into Windows 用于开发的Docker容器 - Docker container for development Windows 上的 PostgreSQL docker 容器 - PostgreSQL docker container on Windows
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM