Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »



1- create a directory + create a Dockerfile

2- build an image


https://www.katacoda.com/courses/docker/create-nginx-static-web-server

1- create a directory + create a Dockerfile

Dockerfile:

FROM nginx:alpine

COPY . /usr/share/nginx/html



2- build an image

docker images

docker build -t mynginx:v1 .


docker images



3- create a docker


docker run -d  p 80:80  webserverimage:v1   




                         

curl docker








  • No labels