Quantcast
Channel: A taste of…
Viewing all articles
Browse latest Browse all 27

Building container images

$
0
0

Cheatsheet for Katakoda’s Building Container images scenario.

Dockerfile

FROM nginx:1.11-alpine
COPY index.html /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

Build container image

docker build -t nginxalpine:v1 .

Launch image

docker run -d -p 80:80 nginxalpine:v1

Viewing all articles
Browse latest Browse all 27

Trending Articles