Docker Community Forums

Share and learn in the Docker community.

Updating docker with dist-upgrade on wheezy?


(Bcellx1) #1

Hi all, I’m running docker with around 50 containers on Debian Wheezy,
had to upgrade the kernel to 3.14
all is working decently good.

My /etc/apt/sources.list has a couple of changes:

deb ftp.us.debian.org/debian/ wheezy main non-free contrib
deb security.debian.org/ wheezy/updates main non-free contrib
deb ftp.us.debian.org/debian/ wheezy-updates main
deb ftp.debian.org/debian/ wheezy-backports main non-free contrib
(<- this)
deb https://get.docker.io/ubuntu docker main (<- and this)

and currently I have installed those packages:

root@linux:~# dpkg -l|grep -i docker
ii lxc-docker 1.2.0
amd64 Linux container runtime
ii lxc-docker-1.2.0 1.2.0
amd64 Linux container runtime

and the kernel:
ii linux-image-3.14-0.bpo.2-amd64 3.14.15-2~bpo70+1
amd64 Linux 3.14 for 64-bit PCs
ii linux-image-3.2.0-4-amd64 3.2.65-1+deb7u1
amd64 Linux 3.2 for 64-bit PCs
ii linux-image-amd64 3.14+59~bpo70+1
amd64 Linux for 64-bit PCs (meta-package)

apt-get update and upgrade runs fine, but reports:
root@linux:~# apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages have been kept back:
linux-headers-amd64 linux-image-amd64 lxc-docker
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

while if trying dist-upgrade, that’s the result:

root@linux:~# apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be REMOVED:
lxc-docker-1.2.0
The following NEW packages will be installed:
cgroupfs-mount irqbalance libcap-ng0 libnuma1
linux-headers-3.16.0-0.bpo.4-amd64 linux-headers-3.16.0-0.bpo.4-common
linux-image-3.16.0-0.bpo.4-amd64 linux-kbuild-3.16 lxc-docker-1.5.0
The following packages will be upgraded:
linux-headers-amd64 linux-image-amd64 lxc-docker
3 upgraded, 9 newly installed, 1 to remove and 0 not upgraded.
Need to get 43.5 MB of archives.
After this operation, 190 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

Question: should I answer Y and have docker upgraded ?

Thank you.


(Sven Dowideit) #2

if you want to update to the latest Docker, and a potentially less buggy Kernel, then yes. You will need to reboot.

The final decision depends entirely on your specific uptime needs.


(Bcellx1) #3

Perfect thanks for supporting.


(Bcellx1) #4

Confirmed, dist-upgrade was able to upgrade both docker and the kernel without any issue.
For reference, that’s the output:

root@linux:~# apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be REMOVED:
lxc-docker-1.2.0
The following NEW packages will be installed:
cgroupfs-mount irqbalance libcap-ng0 libnuma1 linux-headers-3.16.0-0.bpo.4-amd64 linux-headers-3.16.0-0.bpo.4-common
linux-image-3.16.0-0.bpo.4-amd64 linux-kbuild-3.16 lxc-docker-1.5.0
The following packages will be upgraded:
linux-headers-amd64 linux-image-amd64 lxc-docker
3 upgraded, 9 newly installed, 1 to remove and 0 not upgraded.
Need to get 43.6 MB of archives.
After this operation, 202 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 ftp.debian.org/debian/ wheezy-backports/main linux-image-3.16.0-0.bpo.4-amd64 amd64 3.16.7-ckt4-3~bpo70+1 [33.7 MB]
Get:2 ftp.us.debian.org/debian/ wheezy/main libcap-ng0 amd64 0.6.6-2 [13.2 kB]
Get:3 ftp.us.debian.org/debian/ wheezy/main libnuma1 amd64 2.0.8~rc4-1 [33.7 kB]
Get:4 ftp.us.debian.org/debian/ wheezy/main irqbalance amd64 1.0.3-3 [28.2 kB]
Get:5 get.docker.io/ubuntu/ docker/main lxc-docker amd64 1.5.0 [2,092 B]
Get:6 get.docker.io/ubuntu/ docker/main lxc-docker-1.5.0 amd64 1.5.0 [4,632 kB]
Get:7 ftp.debian.org/debian/ wheezy-backports/main cgroupfs-mount all 1.1~bpo70+1 [4,490 B]
Get:8 ftp.debian.org/debian/ wheezy-backports/main linux-headers-3.16.0-0.bpo.4-common amd64 3.16.7-ckt4-3~bpo70+1 [4,476 kB]
Get:9 ftp.debian.org/debian/ wheezy-backports/main linux-kbuild-3.16 amd64 3.16-2~bpo70+1 [266 kB]
Get:10 ftp.debian.org/debian/ wheezy-backports/main linux-headers-3.16.0-0.bpo.4-amd64 amd64 3.16.7-ckt4-3~bpo70+1 [442 kB]
Get:11 ftp.debian.org/debian/ wheezy-backports/main linux-headers-amd64 amd64 3.16+63~bpo70+1 [5,150 B]
Get:12 ftp.debian.org/debian/ wheezy-backports/main linux-image-amd64 amd64 3.16+63~bpo70+1 [5,986 B]
Fetched 43.6 MB in 8s (5,066 kB/s)
Preconfiguring packages …
(Reading database … 49974 files and directories currently installed.)
Preparing to replace lxc-docker 1.2.0 (using …/lxc-docker_1.5.0_amd64.deb) …
Unpacking replacement lxc-docker …
(Reading database … 49976 files and directories currently installed.)
Removing lxc-docker-1.2.0 …
[ ok ] Stopping Docker: docker.
Processing triggers for man-db …
Selecting previously unselected package lxc-docker-1.5.0.
(Reading database … 49929 files and directories currently installed.)
Unpacking lxc-docker-1.5.0 (from …/lxc-docker-1.5.0_1.5.0_amd64.deb) …
Selecting previously unselected package linux-image-3.16.0-0.bpo.4-amd64.
Unpacking linux-image-3.16.0-0.bpo.4-amd64 (from …/linux-image-3.16.0-0.bpo.4-amd64_3.16.7-ckt4-3~bpo70+1_amd64.deb) …
Selecting previously unselected package cgroupfs-mount.
Unpacking cgroupfs-mount (from …/cgroupfs-mount_1.1~bpo70+1_all.deb) …
Selecting previously unselected package libcap-ng0.
Unpacking libcap-ng0 (from …/libcap-ng0_0.6.6-2_amd64.deb) …
Selecting previously unselected package libnuma1.
Unpacking libnuma1 (from …/libnuma1_2.0.8~rc4-1_amd64.deb) …
Selecting previously unselected package linux-headers-3.16.0-0.bpo.4-common.
Unpacking linux-headers-3.16.0-0.bpo.4-common (from …/linux-headers-3.16.0-0.bpo.4-common_3.16.7-ckt4-3~bpo70+1_amd64.deb) …
Selecting previously unselected package linux-kbuild-3.16.
Unpacking linux-kbuild-3.16 (from …/linux-kbuild-3.16_3.16-2~bpo70+1_amd64.deb) …
Selecting previously unselected package linux-headers-3.16.0-0.bpo.4-amd64.
Unpacking linux-headers-3.16.0-0.bpo.4-amd64 (from …/linux-headers-3.16.0-0.bpo.4-amd64_3.16.7-ckt4-3~bpo70+1_amd64.deb) …
Selecting previously unselected package irqbalance.
Unpacking irqbalance (from …/irqbalance_1.0.3-3_amd64.deb) …
Preparing to replace linux-headers-amd64 3.14+59~bpo70+1 (using …/linux-headers-amd64_3.16+63~bpo70+1_amd64.deb) …
Unpacking replacement linux-headers-amd64 …
Preparing to replace linux-image-amd64 3.14+59~bpo70+1 (using …/linux-image-amd64_3.16+63~bpo70+1_amd64.deb) …
Unpacking replacement linux-image-amd64 …
Processing triggers for man-db …
Setting up lxc-docker-1.5.0 (1.5.0) …
Installing new version of config file /etc/init/docker.conf …
[…] Starting Docker: dockerSetting up lxc-docker (1.5.0) …
Setting up linux-image-3.16.0-0.bpo.4-amd64 (3.16.7-ckt4-3~bpo70+1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub.cfg …
Found linux image: /boot/vmlinuz-3.16.0-0.bpo.4-amd64
Found initrd image: /boot/initrd.img-3.16.0-0.bpo.4-amd64
Found linux image: /boot/vmlinuz-3.14-0.bpo.2-amd64
Found initrd image: /boot/initrd.img-3.14-0.bpo.2-amd64
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
done
Setting up cgroupfs-mount (1.1~bpo70+1) …
[ ok ] Mounting cgroupfs hierarchy.
Setting up libcap-ng0 (0.6.6-2) …
Setting up libnuma1 (2.0.8~rc4-1) …
Setting up linux-headers-3.16.0-0.bpo.4-common (3.16.7-ckt4-3~bpo70+1) …
Setting up linux-kbuild-3.16 (3.16-2~bpo70+1) …
Setting up linux-headers-3.16.0-0.bpo.4-amd64 (3.16.7-ckt4-3~bpo70+1) …
Setting up irqbalance (1.0.3-3) …
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match irqbalance Default-Stop values (none)
[ ok ] Starting SMP IRQ Balancer: irqbalance.
Setting up linux-headers-amd64 (3.16+63~bpo70+1) …
Setting up linux-image-amd64 (3.16+63~bpo70+1) …
root@linux:~# dpkg -l|grep -i docker
ii lxc-docker 1.5.0 amd64 Linux container runtime
rc lxc-docker-1.2.0 1.2.0 amd64 Linux container runtime
ii lxc-docker-1.5.0 1.5.0 amd64 Linux container runtime
root@linux:~# reboot

Thanks for supporting.