Skip to content

Instantly share code, notes, and snippets.

@oleurud
Last active July 9, 2018 08:50
Show Gist options
  • Save oleurud/3c81ba1332689d2be9eb8d076326462b to your computer and use it in GitHub Desktop.
Save oleurud/3c81ba1332689d2be9eb8d076326462b to your computer and use it in GitHub Desktop.
Run command inside a docker container #docker
docker exec -it {docker image} {command}
Example:
docker exec -it mongo mongo
docker exec -it mysql mysql --host=localhost --port={port} --user={user} --password={password} {dbName}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment