Last active
July 9, 2018 08:50
-
-
Save simon-contreras-deel/3c81ba1332689d2be9eb8d076326462b to your computer and use it in GitHub Desktop.
Run command inside a docker container #docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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