doceker info
docker version
docker search
docker pull
docker run
docker ps
docker stop
docker restart
docker kill
docker exec
docker login
docker commit
docker push
docker network
docker history
docker rmi
docker ps -a
docker copy
docker logs
docker volume
docker logout
docker exec
docker logs
docker rm
docker search
Note: If you want to learn more about the commands listed above, you can use help command to see the details. Use it like:
docker pull --help
https://docs.docker.com/get-docker/
-
Clone the project repository by running:
git clone <REPO_URL>
-
Navigate to the nginx-website folder by running:
cd docker-essentials-demo
-
Build the docker image by running:
docker build . -t docker-essentials-demo:latest
Note: this assumes the Dockerfile is in the directory you are running this command
-
Run the newly built image to check out the website in a browser
docker run -p 8088:80 docker-essentials-demo:latest
This creates a new container from the image and binds port 80 of the container to port 8088 of the host machine
-
Visit
http://127.0.0.1:8088
orhttp://localhost:8088
to view the websiteClick
ctrl+c
to stop the running container.
Note: I did not make this website but I downloaded it from https://github.com/learning-zone/website-templates