Skip to content

Instantly share code, notes, and snippets.

@Elandlord
Last active July 12, 2021 08:52
Show Gist options
  • Save Elandlord/fc63897473bed7e9abe2c314810a4546 to your computer and use it in GitHub Desktop.
Save Elandlord/fc63897473bed7e9abe2c314810a4546 to your computer and use it in GitHub Desktop.

Docker compose start

docker-compose up

Go into docker container

  1. docker ps // get containers
  2. docker exec -it <container name> /bin/bash // opens bash shell in container
  3. docker exec -it <container name> <command> // execute command specified in container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment