Skip to content

A simple and small project to understand how Docker works and to be used as a template for more advanced Docker projects.

License

Notifications You must be signed in to change notification settings

tstaerk/docker-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

docker-hello-world

A simple and small project to understand how Docker works and to be used as a template for more advanced Docker projects.

QuickStart

sudo su -
apt install docker.io
git clone https://github.com/tstaerk/docker-hello-world
cd docker-hello-world
docker build -t hellocontainer .
docker run -d --name webservice -p 8080:80 hellocontainer
wget localhost:8080

docker cheat sheet

docker ps -> find out what containers are running

docker exec -it 307b188210a1 sh -> run shell inside container with ID 307b188210a1

docker build -t franz . -> build the Dockerfile in the current directory and call it franz instead of e.g. 307b188210a1

docker run -d --name webserver2 -p 8080:80 webserver -> run the docker container webserver

About

A simple and small project to understand how Docker works and to be used as a template for more advanced Docker projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published