John Willis

Docker Tutorial 10 – Docker Compose

John Willis

This is a casual Docker tutorial series. We will start out first with very simple sessions on how to install and use the docker run command. In future videos we will hit more advanced topics.


Screen Shot 2015-05-20 at 10.16.48 AM


This tenth video talks about Docker Compose. We will cover basic installation and show how to create YML files to compose containers. Will will also use an Nginx/Tomcat stack as one of the examples.


Here’s the link to for some of the commands used in this video.

Head over to the install docs to download Compose 1.2 and check out the quick start guide to take it for a spin. If you have any questions, drop in to #docker-compose on IRC and report any bugs on GitHub.

Thank you,

John Willis

Learn More about Docker

Continue reading...


4 thoughts on “Docker Tutorial 10 – Docker Compose

  1. Docker Learner

    Thanks for the HD recording, I really appreciate it.

  2. John, very good tutorial. Thank you for doing this. Do you mine also including the nginx.conf into the gist please? Thanks Jason

  3. Shiva Kumar H R

    Awesome tutorial. Thanks much for this.

    One minor update needed:

    I was hitting “ERROR: readdirent: not a directory” when I ran “docker-compose -f compose-ex2.yml up -d” (on CentOS 7). As suggested in I updated the compose-ex2.yml as below (i.e. added ./ to relative paths) and it worked fine.


    – ./nginx.conf:/etc/nginx/nginx.conf

    – ./sample.war:/usr/local/tomcat/webapps/sample.war

    – ./sample.war:/usr/local/tomcat/webapps/sample.war

    – ./sample.war:/usr/local/tomcat/webapps/sample.war

Leave a Reply