Skip to content

Instantly share code, notes, and snippets.

@MelissaKaulfuss
Last active December 10, 2018 22:12
Show Gist options
  • Save MelissaKaulfuss/9ecb44f42d9d536bc6ff338d028aa0b0 to your computer and use it in GitHub Desktop.
Save MelissaKaulfuss/9ecb44f42d9d536bc6ff338d028aa0b0 to your computer and use it in GitHub Desktop.
A bunch of docker commands/tips
  • Mounting apps locally use the branch that you have checked out locally.
  • When you want to execute a rails type of command inside a container:
    • docker-compose exec app_name <bundle update --source gem_name> where the command is the thing in the <>
  • try turning Docker daemon off and on again
  • To log in to a container to tail the logs docker-compose exec <container-name> bash then tail -f log/*logs
@MelissaKaulfuss
Copy link
Author

MelissaKaulfuss commented Mar 22, 2018

A docker container with the app mounted locally:

  • Files are local
  • DB is containerised

img_0253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment