Rod Talingting
Rod Talingting

Reputation: 1080

docker commands not working with latest version

The following commands used to work before, but as of Docker version 19.03.8 - build afacb8b they are not working.

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q) -f
docker rmi $(docker images -f "dangling=true" -q)

This is the error I'm getting for the first docker command to stop all containers:

unknown shorthand flag: 'a' in -a
See 'docker stop --help'.

Upvotes: 3

Views: 1771

Answers (1)

Sasi Kumar M
Sasi Kumar M

Reputation: 2630

In case of using Windows OS, Faced similar issue, got it working when executed the command from windows PowerShell, preferably with admin privilege's.

Upvotes: 8

Related Questions