Docker: Containers populares (Nginx, Mongo, ...)

From Wiki
Revision as of 21:21, 22 September 2018 by Ebasso (talk | contribs) (→‎Criando um http server para arquivos)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Containers Populares

Nginx HTTP Server

docker container run --detach --publish 80:80 --name nginx nginx
  • --detach ou -d
  • --publish ou -p
  • --volume ou -v

Criando um http server para download de arquivos

docker run -d -p 80:80 --name software-repository --volume /home/ebasso/software:/usr/share/nginx/html:ro  nginx

Mongo DB

docker container run --detach --publish 8081:27017 --name mongo mongo:latest

Ver também