具有指定标识符的虚拟机或容器未运行

问题描述

# Use an existing docker image as a base
FROM alpine

# Download and install a dependency
RUN apk add --update redis

# Tell the image what to do when it starts as a container
CMD ["redis-server"]

我上面的代码在构建时给出了错误

Sending build context to Docker daemon  2.048kB
Step 1/3 : FROM alpine
 ---> a24bb4013296
Step 2/3 : RUN apk add --update redis
 ---> Running in fac02df601ff
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/1) Installing redis (5.0.9-r0)
Executing redis-5.0.9-r0.pre-install
Executing redis-5.0.9-r0.post-install
Executing busyBox-1.31.1-r16.trigger
OK: 7 MiB in 15 packages

**The command '/bin/sh -c apk add --update redis' returned a non-zero code: 4294967295: Failed to shutdown container: container fac02df601ff06ff1c441ba0ba46fe5d10ac234da9dd48f69292611202dfe764 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): subsequent terminate Failed container fac02df601ff06ff1c441ba0ba46fe5d10ac234da9dd48f69292611202dfe764 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)**

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)