Docker Run

From ElectroDragon
Jump to navigation Jump to search

docker run --name kk -d -p 80:80 -v /app1:/app -e WEB_ALIAS_DOMAIN=www.32bit.fun webdevops/php-nginx

  • -v copy host /app1 to container /app
  • -e WEB_ALIAS_DOMAIN=32bit.fun

REF - https://docs.docker.com/engine/reference/commandline/run/