Skip to content

Instantly share code, notes, and snippets.

@hsteinshiromoto
Last active August 28, 2019 12:34
Show Gist options
  • Save hsteinshiromoto/b73b17f116a32411637fe36cf4b8a2e7 to your computer and use it in GitHub Desktop.
Save hsteinshiromoto/b73b17f116a32411637fe36cf4b8a2e7 to your computer and use it in GitHub Desktop.
Wordpress: Run Container
#!/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