Getting started with Jenkins & Docker. Part I: Getting Docker

Stephany Daneri
3 min readApr 8, 2019

--

Download the one that suits for you from:

To ensure your install was successful, then you need to follow the steps described on:

Docker Install Info

  1. If you need to check your docker instalation info then:
docker --version
docker --version

2. Something particular to notice is that there’s a different command to obtain more info (docker version, but without the “ — ”:

docker version
docker version

3. To getting more info:

docker info
docker info

Test Docker Installation

  1. To see if your installation works, execute the following:
docker run hello-world

hello-world is a docker image stored on the Docker hub. If Docker finds the hello-world image on your local machine, then it would run it directly, but since this is the first time we’re executing this command, then it would have to pull it from Docker Hub:

docker run hello-world

2. In order to list all the docker images on your local:

docker image ls
docker image ls

3. In order to see all the running docker containers alive:

docker container ls

If you want to see all the containers (alive and not alive ones), then execute:

docker container ls --all

Now, let’s continue with the Jenkins install using its docker image:

--

--

Stephany Daneri

Test Engineer with 7+ years of experience. Worked with distributed teams across different countries. Chapter Lead QA at largest bank in Peru