Skip to content

yellowbrickinternational/docker-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

container management

  • docker images
  • docker ps
  • docker pull
  • docker push
  • docker run
  • docker inspect
  • docker exec

Running first container

docker pull ubuntu:latest

docker run -it ubuntu:latest /bin/bash

Using volumes

  • mkdir ~/html
  • echo 'plop' > ~/html/index.html
docker pull nginx:latest

docker run --name some-nginx -v `pwd`:/usr/share/nginx/html:ro -d nginx
  • How can I get static content?
    • docker inspect

Port forwarding

docker pull nginx:latest

docker run --name some-nginx -v `pwd`:/usr/share/nginx/html:ro -p 8080: 80 -d nginx

Build own nginx

  • create Dockerfile
docker build -t my-nginx:my-tag .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published