In the Dockerfile for this base image we will have this:įROM docker:19.03-dind #you can use different image here if you need specific one When we have created the subdirectory we have to create the Dockerfile. So first, we have to create the Base Image, for that, create a new subdirectory in the Base_Images directory, with the appropriate name, I will use linux_dind_openjdk11 as my base image. We will create one Base Docker Image and one Extension Docker Image. With this approach, we can have several base images and always create new ones easily using the base layers by adding new features on top of them. Create one folder like Docker_Images and inside that folder, we have to create two subfolders (Base_Images and Extension_Images), in the Base images folder we will store the base layer images that will be used in the Extension Docker Images, so we will use base images, add new features and get new custom Docker Images fast. The processįirst, we have to create the folder structure from where we will build, and push the Docker images. This article can cost money, so please first take a look at the resources. In this article, I will bring one process that I think is very useful when we are working with Docker, here we will see how we can easily speed up the creation of Docker images for our custom usage.įor this presentation we need several prerequisites: installed Docker on your machine, Google Artifact Registry, the appropriate accounts set up for Google Cloud (authenticated and ready for use), Bitbucket Pipelines. For that purpose, I wanted to bring this article to you and save some time so you can focus and work on new things. We have more and more images created, more containers used, all that is expanding so we need something that will help us in the process to complete repetitive tasks easy and fast. Starting from the first initial release back in 2013, Docker and its images are still growing and growing every day.