HUB
Sign inSign up

hhcordero/docker-intro

By hhcordero

•Updated over 11 years ago

Brief introduction on Docker

Image
0

1.2K

hhcordero/docker-intro repository overview

⁠Intro on Docker

Brief introduction on Docker

To run using Dockerfile:

docker build -t web .
docker run -it --rm --name my-app -p 80:80 web

Using docker-compose:

docker-compose up -d

Without a Dockerfile:

docker run --name my-app -p 80:80 -v $(pwd)/src:/usr/share/nginx/html -d hhcordero/docker-intro

Read-only mount:

docker run --name my-app -p 80:80 -v $(pwd)/src:/usr/share/nginx/html:ro -d hhcordero/docker-intro
Tag summary
Recent tags
Content type
Image
Digest
sha256:5943836ea…
Size
52.2 MB
Last updated
about 11 years ago
docker pull hhcordero/docker-intro:latest