Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Container Reload Script
#!/bin/bash
docker pull user/myrepo && \
docker rm -f myapp && \
docker run -d -p 80:80 -e RAILS_ENV=production --env-file=/opt/utils/deps/web.envfile --name=myapp --link=postgres:postgres --link=redis:redis user/myrepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.