Skip to content

vishal2232/docker_staticSite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker_staticSite

Hosting a website locally using docker.
https://hub.docker.com/r/vishal2232/static-site/ ##Steps Pull the docker image
$ docker pull vishal2232/static-site1
Run docker image.


$ docker run vishal2232/static-site


Run the container in detached mode

$ docker run -d -P --name static-site static-site


$ docker port static-site
terminal output:
80/tcp -> 0.0.0.0:32769
443/tcp -> 0.0.0.0:32768`


now open the url
[http://localhost:32769] (http://localhost:32769)