Hi Vishnu,
When building Docker images, we need both Docker client and Docker daemon. That's why we:
docker:17
docker:dind
There is a simple example of this interaction on Docker hub hub.docker.com/_/docker without involving GitLab CI.
p.s. FYI there are alternative solutions that allow building docker images without docker client, but these are out of scope and require more effort.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Vishnu,
When building Docker images, we need both Docker client and Docker daemon. That's why we:
docker:17
as a base image for the job to call Docker client;docker:dind
to the job as a service for the daemon.There is a simple example of this interaction on Docker hub hub.docker.com/_/docker without involving GitLab CI.
p.s. FYI there are alternative solutions that allow building docker images without docker client, but these are out of scope and require more effort.