Install Ubuntu Server and Docker Snap vs. APT

Diese Seite gibt es auch in Deutsch

My goal was to use Docker on a homebuilt NAS. The operating system I used was the server version of Ubuntu, which is available in the form of an installation media on the official Ubuntu site: ubuntu.com/download/server. The current Ubuntu version is: 22.10 (found: 2022-10-20)

Try or Install Ubuntu Server

If the installation medium is inserted (DVD or USB stick), the GRUB bootloader will announce itself at the next start, see also: Starting the computer from USB or DVD | UEFI / BIOS - Boot.

The wizard guides us through the network settings and setting up the profile:

To be able to administer the server over the network, I enabled the OpenSSH server:

Featured Server Snaps

Docker can be easily enabled as a "featured server snap" during server installation.

I still installed Docker last according to the official instructions on the Docker site, since the paths of the installation are otherwise different from the default ("/var/lib/docker") are: "/var/snap/docker/common/var-lib-docker".

Since Docker manages its paths itself, and they are not relevant when using Docker commands, the difference should not make any difference in practice, see: Launching Docker containers on Linux: use Docker Engine.

Ubuntu Snaps vs. Apt

Snap is a package management system from Canonical, the company that develops the Ubuntu Linux distribution. When using Snap, all required dependencies for an application are downloaded and installed in a tested container isolated from the system. In contrast, when using APT, packages are installed on the main file system.

Docker installation with Snap can be initiated in the terminal as follows:

sudo snap install docker

In comparison, software packages can be installed using the APT package manager as follows:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-compose

Docker installation also requires an additional package source, see: Launching Docker containers on Linux: use Docker Engine.

 

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Publication: 2022-11-21 from Bernhard 🔔


Top articles in this section


ZFS vs BTRFS - file system | deduplication and snapshots
In my search for file system features like snapshots or deduplication, I ended up with the file systems ZFS and later BTRFS. In the Linux environment, the ext4 file system is currently a quasi-standard, but file systems like ZFS and BTRFS offer considerable added value.

Fan control Linux Debian: Fancontrol
After I installed a fan in my NAS, it always ran at top speed. In the BIOS I could set the speed, but the automatic mode did not work properly. Using the service fancontrol the speed of the fan can be linked to any sensor and any threshold and controlled automatically.

Debian or Ubuntu kernel update or change- current kernel
The currently available Linux kernel has the version: 6.0.11 (found: 2022-12-03). Source: www.kernel.org. The Linux distributions, as an example Debian or Ubuntu used new kernel versions only with some delay, accordingly the used kernel versions are usually somewhat older. Which kernel is active on a Linux system can be read out with the following command:

Questions / Comments


By continuing to browse the site, you agree to our use of cookies. More Details