Skip to content

Instantly share code, notes, and snippets.

@chakrihacker
Last active February 28, 2020 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chakrihacker/bd21a109e0aba5c2e36e74d6f2a4047f to your computer and use it in GitHub Desktop.
Save chakrihacker/bd21a109e0aba5c2e36e74d6f2a4047f to your computer and use it in GitHub Desktop.
List of docker commads and technical terms explanation

Docker Compose

  1. Run a service in docker-componse file docker-compose run <service-name> <command you want to run> Ex: docker-compose run app rails s`
  2. One liner to stop/delete containers docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)
  3. Clean docker docker system prune deletes that are not associated with container docker system prune -a deleted stopped containers and images too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment