There are two possibilities for a container in the created state:
- As explained by the dasker @askb container created from the image using the create docker command, the create command will
- A docker container created by the run command but not capable of starting. There are several reasons here, but the simplest is a docker container with port mapping for already bound
To answer the question, in both cases their removal is safe.
The way to play the docker container in the created state using the launch command:
docker pull loicmathieu/vsftpd docker run -p 621:21 -d loicmathieu/vsftpd ftp docker run -p 621:21 -d loicmathieu/vsftpd ftp
Then docker ps -a will give you something like
CONTAINER ID IMAGE COMMAND CREATED STATUS e60dcd51e4e2 loicmathieu/vsftpd "/start.sh ftp" 6 seconds ago Created 7041c77cad53 loicmathieu/vsftpd "/start.sh ftp" 16 seconds ago Up 15 seconds
source share