TransWikia.com

docker commands not working with latest version

Stack Overflow Asked by Rod Talingting on December 18, 2021

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'.

One Answer

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

Answered by Sasi Kumar M on December 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP