I would like to build my custom docker image based on bitnami/jenkins:latest.
Basically I need to start a docker container with Jenkins as it is provided by the image above and install some new package that I need.
Here’s the docker-compose.yml file I am using:
services: jenkins: image: bitnami/jenkins:latest ports: - 8080:8080 - 8443:8443 volumes: - "jenkins_data:/bitnami" volumes: jenkins_data:
My first attempt was to get into the docker container and run
apt-get update && apt-get install net-tools
But actually, there’s no internet connection whithin the container itself.
I tried many different ways to install the package, but no luck yet.
Also using the RUN command within the Dockerfile but docker says the build is skipping due to the fact I’m dealing with an image.
How could I do?