Getting Started with Docker

Verify that Docker is installed by running this command:

 $ ​​docker​​ ​​--version
 Docker version 1.10.0, build 590d5108

Now check that Docker can communicate with Docker Machine by running this command:

 $ ​​docker​​ ​​ps
 CONTAINER ID IMAGE COMMAND CREATED ...

This is an empty list, but you’d see a list of running Docker processes (known as containers) if there were any. A container represents some isolated process or processes that are running within the Docker context. They’re isolated from the rest of the processes on your machine and even from the other Docker containers. This has many of the same benefits as traditional visualization but with a very different underlying implementation.

In traditional ...

Get Deploying with JRuby 9k now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.