This blog post does contain the tasks to create a Docker image and upload the image to dockerhub and clean up the image and container on the local machine.Continue reading
Usually, when you use an existing container image to create your own customized configuration, you don’t have deep knowledge how that container image is built, and you have questions like: “What are the folder rights?”, or “What are the installation paths of applications?”, or other information you need to customize the container image to your needs.
You can learn about the existing image, when you visit the GitHub or Dockerhub project of that image (for example: links to GitHub “docker-library / repo-info” and Dockerhub “jenkins repo-info” project of Jenkins). But to ensure that your customization works, you have to run and access the running container in the commandline mode and verify your changes step by step running the image in Kubernetes.
Here are the steps to customize a Jenkins container image I want to run on minikube, you can try it out:
We defined a Dockerfile to create a Docker image for our Cloud-Native-Starter workshop especially for Windows 10 users. The users can now simply create a Docker image on the local Windows 10 machine and then follow the guided steps in the hands-on workshop documentation and use the bash scripts. The reason why we don’t build a Docker image and share the image on Dockerhub is, we want to provide users the freedom of own customizations.
These are some challenges we had during the testing of the Dockerfile definition:
- File sharing for Docker images on Windows
- Docker port forwarding
- Docker in Docker
- Istio Virtual service configuration
- Linux tools missing