Chapter 10 Docker Hub

This document covers the using Docker Hub ( to find images that will help as a starting point for the software container that will run your application.

10.1 Create an Account

Create an account at Docker Hub ( to be able to push and pull Docker Hub images.

10.2 Log Into Docker via Command Line

Use docker login to log into DockerHub via the commandline.

  1. docker login --help - Use this to see the options for logging in
  2. docker login -u your_user_name - The -u option allows us to pass our user name.
  3. Password - The prompt will request our password for DockerHub

10.3 Searching Docker Hub

Use docker search to search for containers related to our project. Alternatively we can search on the DockerHub website.

  1. docker search shiny - Searches all instances where “shiny” is present. Sorts by DockerHub Stars.
  2. NAME - Docker registry name
  3. STARS - Docker Hub Star count

10.4 Pulling an Image

Use docker pull to pull an image from the DockerHub (remote) to your EC2 Server.

  1. docker pull rocker/shiny-verse - Pulls an image that contains shiny server and the tidyverse R packages
  2. docker pull rocker/tidyverse (Not shown) - Pulls an image that contains RStudio server and tidyverse R packages

10.5 List the Docker Images

  1. docker image ls - List the local docker images installed on the EC2 Server.
    • Note that you will likely have fewer images
    • Size - If you install many images, you can quickly eat up server space

10.6 Wrapup

Now you have the following Docker Images successfully installed on your EC2 Server:

  1. rocker/shiny-verse - Contains shiny server and the tidyverse R packages
  2. rocker/tidyverse - Contains rstudio server and the tidyverse R packages

Become a Expert Shiny Developer with AWS

Business Science

Have a question? Leave a comment.