I use following commands to remove all docker containers:
docker ps -q | xargs docker stop
docker ps -aq --no-trunc -f status=exited | xargs docker rm
But anyway I see containers after:
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
70cb7107d00d 24820714bfc6 "wait-for-it.sh mysqâ¦" 21 minutes ago Created sql_migration
Then I executed command
docker rm sql_migration
And it removed the container.
Can you please help to correct initial command and explain why it doesn't work.
Also I would be grateful if you explain how to change contaner to status like sql_migration