So I know that with each
RUN command docker creates a layer, or intimidate images if you will, and that this leads to caching
apt-get update. But I am having very very difficult times with installing new packages with
apt-get in docker, and I'm not sure what is going on, I have spent hours now fidgeting around getting no where, I'm mainly using ubuntu as a base image.
Certain packages seem to randomly not install, for instance wget. If I go into the terminal in my container, and do an
apt-get update then a
apt-get install wget I can install wget. But in the docker file, even when I delete all the images created by each RUN line to stop the update from being cached, I cannot install wget with the exact same commands, it is absolute madness, and I feel as if I am going insane.
Other packages seem to randomly work and not work. I've even had this package:
python-glpk which was installing in the Dockerfile at first, but not anymore... I am unable to see any deterministic behaviour to update and install, they seem to work when the wind is only blowing a certain direction.
It takes a long time to do an update with my internet and I'm on a virtual machine so my workflow is completely broken, lost so much time, is anyone else having issues with simple
apt-get update && apt-get install? What are the best practices when dealing with
apt-get in docker so ensure everything is working as it should?