Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save simon-contreras-deel/3c81ba1332689d2be9eb8d076326462b to your computer and use it in GitHub Desktop.
Save simon-contreras-deel/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