Getting started with Jenkins & Docker. Part I: Getting Docker
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
- If you need to check your docker instalation info then:
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
3. To getting more info:
docker info
Test Docker Installation
- 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:
2. In order to list all the docker images on your local:
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: