Getting Started with

Warning: only supports docker version 1.0 or greater

Sign into

To sign into, execute the docker login command:

Note: If you go to your Quay account settings you can create an encrypted password for more security.

$ docker login
Username: myusername
Password: mypassword

Create a new container

First we’ll create a container with a single new file based off of the ubuntu base image:

$ docker run ubuntu echo "fun" > newfile

The container will immediately terminate (because its one command is echo), so we’ll use docker ps -l to list it:

$ docker ps -l
CONTAINER ID        IMAGE               COMMAND             CREATED
07f2065197ef        ubuntu:12.04        echo fun            31 seconds ago

Make note of the container id; we’ll need it for the commit command.

Tag the container to an image

We next need to tag the container to a known image name

Note that the username must be your username and reponame is the new name of your repository.

$ docker commit 07f2065197ef

Push the image to

$ docker push
The push refers to a repository [] (len: 1)
Sending image list
Pushing repository (1 tags)
8dbd9e392a96: Pushing [=======>         ] 21.27 MB/134.1 MB 40s

Pull the image from

If any changes were made on another machine, a docker pull can be used to update the repository locally

$ docker pull