You can also run your command – docker stop $(docker ps -aq)
in PowerShell or Git Bash; I would think the command fails because the $(docker ps -aq)
part of the command is Linux command and windows CMD does not know how to translate that.
More Related Contents:
- Docker Compose wait for container X before starting Y
- What is the difference between docker-compose ports vs expose
- How to run shell script on host from docker container?
- Confused about Docker -t option to Allocate a pseudo-TTY
- How to mount a single file in a volume
- How to set the locale inside a Debian/Ubuntu Docker container?
- Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
- How to update /etc/hosts file in Docker image during “docker build”
- Docker cannot start on Windows
- Conditional COPY/ADD in Dockerfile?
- docker: “build” requires 1 argument. See ‘docker build –help’
- Docker build “Could not resolve ‘archive.ubuntu.com'” apt-get fails to install anything
- What is a dangling image and what is an unused image?
- What is the right way to add data to an existing named volume in Docker?
- Externalising Spring Boot properties when deploying to Docker
- How can I use a variable inside a Dockerfile CMD?
- Docker look at the log of an exited container
- How to Dockerize windows application
- What is the difference between ports and expose in docker-compose?
- How to fill user input for interactive command for “RUN” command?
- How to mount local volumes in docker machine
- How to automatically start a service when running a docker container?
- How do I edit a file after I shell to a Docker container?
- How do I configure docker compose to expose ports correctly?
- Change directory command in Docker?
- Dockerfile build – possible to ignore error?
- Docker container doesn’t expose ports when –net=host is mentioned in the docker run command
- What’s the best way to share files from Windows to Boot2docker VM?
- Docker loading kernel modules
- docker – how do you disable auto-restart on a container?