Created Docker container process is not showing using command docker ps --all
I have created only one Dockerfile in a directory, and which is a single available file inside the directory.
the Dockerfile contains following lines:
# 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"]
and after saving the file with name "Dockerfile" and without any extension, I am simply executing the command to build using docker build .
and the logs are as follows:
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM alpine
---> a24bb4013296
Step 2/3 : RUN apk add --update redis
---> Using cache
---> 218559ae3e9b
Step 3/3 : CMD ["redis-server"]
---> Using cache
---> fc607b62e266
Successfully built fc607b62e266
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
so, as above you can see the container image process is getting built successfully, but still the container not getting displayed using docker ps --all
command.
Well I am using Windows 10 x64 OS & with assurance that no antivirus or firewall is blocker this docker. Am I missing something or making any mistake here?