Last active
August 28, 2019 12:34
-
-
Save hsteinshiromoto/b73b17f116a32411637fe36cf4b8a2e7 to your computer and use it in GitHub Desktop.
Wordpress: Run Container
This file contains hidden or 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
#!/bin/bash | |
# --- | |
# Global Variables | |
# --- | |
project_name=$(basename $(pwd)) | |
docker_user=docker_username | |
registry=docker_registry | |
tag=latest | |
docker_image=${registry}/${docker_user}/${project_name}:${tag} | |
# --- | |
# Run Container | |
# --- | |
docker run -i -t -v $(pwd):/home/${project_name} -e uid=$UID ${docker_image} /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment