Docker Tutor (for OS X)

Udemy – Docker Technologies for DevOps and Developers,筆記整理內容如下:

Install Docker for Mac

https://docs.docker.com/docker-for-mac/

Try out

  1. Open Terminal and type below command to check docker's version:

    docker version
    docker images

  2. Running in foreground:

    docker run busybox:1.26 echo "hello world"
    docker run busybox:1.26 ls /

  3. Creating an interactive terminal you can use to iteract with your container (-it)

    docker run -t -i busybox:1.26

  4. List image's status (ps)

    docker ps
    docker ps -a

Continue reading