To stop and remove a Docker container, run a Docker Compose command.
Procedure
- On the host machine, go to the Docker working directory where you earlier deployed the
Docker image package files (/mdm).
-
Run the following
docker-compose command to stop and remove the related
containers and close the network cleanly:
docker-compose –f <YAML file name> down