Hi Team,
When i upgrade package in my ubuntu machine, at that time docker no need to upgrade.
like apt upgrade -y
is there Any way to achieve that?
Share and learn in the Docker community.
Hi Team,
When i upgrade package in my ubuntu machine, at that time docker no need to upgrade.
like apt upgrade -y
is there Any way to achieve that?
How did you install Docker? Which repository do you use?
Hey @vijayiqa,
Well⦠you can disable the docker repository while upgrading or updating other packagesā¦
Hopefully it will help you
apt repository in ubuntu machine
Disabling Dockerās repository is not a really good idea. Just mark the packages as held.
apt-mark hold docker-ce docker-ce-cli docker-ce-rootless-extras containerd.io docker-compose-plugin
That way you would still be able to check new versions using apt-cache madison
and you will see the the packages as held when you run apt upgrade, but Docker wil not be upgraded unless you specifically upgrade these packages or unhold them.
Also
apt-mark showheld
can show the currently held packages.