Skip to content

Instantly share code, notes, and snippets.

@leolana
Created July 16, 2017 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leolana/5ed42b720116ae57d36ada3cadbd9ab2 to your computer and use it in GitHub Desktop.
Save leolana/5ed42b720116ae57d36ada3cadbd9ab2 to your computer and use it in GitHub Desktop.
Php scipt run docker
#!/bin/sh
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
echo "Current working directory: '"$(pwd)"'"
echo "Expose port 5000"
sudo docker run --rm -it -p 5000:5000 -v $(pwd):/app -v ~/.ssh:/root/.ssh leonardolana/phpdocker:latest /usr/local/bin/php $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment