The virtual machine or container with the specified identifier is not running

0
# 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"]

My above code gives an error and when i build it.

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)**
docker
redis
dockerfile
docker-machine
asked on Stack Overflow Aug 27, 2020 by Ayush • edited Aug 27, 2020 by OneCricketeer

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0