User Tools

Site Tools


software:docker

# Setting up Docker (and Docker Desktop) on Ubuntu ## Sources

## Prerequisites

  1. verify you have a GNOME-based desktop environment (Ubuntu Desktop is GNOME-based)
    1. if not install gnome-terminal - `sudo apt install gnome-terminal`
  2. verify you have KVM virtualization support - `lsmod | grep kvm`
    1. if `kvm` and `kvm_<arch>` is not listed check [here](https://docs.docker.com/desktop/setup/install/linux/#kvm-virtualization-support)
    2. ensure your user is part of the kvm group - `sudo usermod -aG kvm $USER`

## Install Steps

  1. ensure apt-get is up to date - `sudo apt-get update`
  2. download the proper install for docker-desktop
    1. for Ubuntu this is a `.deb` file
      1. to make sense of the release names see https://wiki.ubuntu.com/Releases
      2. find the right directory for your CPU architecture via `dpkg –print-architecture`
      3. download the latest version of all install files
        • containerd.io_<version>_<arch>.deb
        • docker-buildx-plugin_<version>_<arch>.deb
        • docker-ce-cli_<version>_<arch>.deb
        • docker-ce-rootless-extras…?
          • not certain about this one; it's listed in the download site but not the docs
        • docker-ce_<version>_<arch>.deb
        • docker-compose-plugin_<version>_<arch>.deb
      4. install the packages
        1. `sudo dpkg -i ./containerd.io_*.deb ./docker-ce_*.deb ./docker-ce-cli_*.deb ./docker-buildx-plugin_*.deb ./docker-compose-plugin_*.deb`

## Startup and Verify Docker

  1. `sudo service docker start`
  2. verify with a hello-world container
    1. `sudo docker run hello-world`
  3. configure to start on boot
    1. `sudo systemctl enable docker.service containerd.service`

## Configure Docker Logging

  1. `vi /etc/docker/daemon.json`

## Install Docker Desktop

  • get latest deb file (rather large - 356MB)
  • `sudo apt-get install ./docker-desktop-amd64.deb`
    • ignore error msg at end (`N: Download is performed unsandboxed as root as file '…/docker-desktop-amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)`
  • there should now be a “Docker Desktop” icon in the Apps section
software/docker.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki