Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker exec to run a long command #8

Open
lmquang opened this issue Oct 5, 2017 · 0 comments
Open

Docker exec to run a long command #8

lmquang opened this issue Oct 5, 2017 · 0 comments

Comments

@lmquang
Copy link
Owner

lmquang commented Oct 5, 2017

docker exec --user [container_user] -t [ContainerID] bash -c "psql [db_name] < [sql_file]"

@lmquang lmquang changed the title Docker exec to run a whole command Docker exec to run a long command Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant