- Run a service in docker-componse file
docker-compose run <service-name> <command you want to run> Ex:
docker-compose run app rails s` - One liner to stop/delete containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
- Clean docker
docker system prune
deletes that are not associated with containerdocker system prune -a
deleted stopped containers and images too
Last active
February 28, 2020 16:18
-
-
Save chakrihacker/bd21a109e0aba5c2e36e74d6f2a4047f to your computer and use it in GitHub Desktop.
List of docker commads and technical terms explanation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment