Docker Run

From ElectroDragon Wiki
Revision as of 01:26, 29 May 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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/