Monday 4 September 2017

Docker training on Mac, 001


Take these steps, and, afterwards, try to understand how and why they worked, including flags/options "passed into" the command.
  • install Docker for Mac
    • verify install
      • docker --version
    • run basic container test
      • docker run hello-world
  • install iTerm2
    • open a terminal window and split horizontally, then close
    • open a terminal window and split vertically, then close
  • run webserver
    • open a terminal window and split horizontal
    • in bottom pane, run: 
      • watch -d -n7 docker ps -a
      • as you take steps below, watch what changes occur in this window
    • in top window, run:
      • docker run -d -p 8080:80 --name mywebserver001 nginx
    • open this in your web browser
      • http://localhost:8080
  • shut it down
    • docker stop mywebserver001
    • docker rm mywebserver001

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...