Instalación de Docker

Puede encontrar la ayuda completa en esta página https://docs.docker.com/installation/

Debian o Ubuntu

Instalación de paquetes necesarios:

apt-get update
apt-get install -y apt-transport-https 

Adicionar el repositorio en la UCLV

Debian

cat >  /etc/apt/sources.list.d/docker.list << 'EoT'
deb https://nexus.uclv.edu.cu/repository/download-docker/linux/debian buster stable
EoT

Ubuntu

cat >  /etc/apt/sources.list.d/docker.list << 'EoT'
deb https://nexus.uclv.edu.cu/repository/download-docker/linux/ubuntu focal stable
EoT

Adicionar la llave con la que se firman los paquetes

wget -q https://nexus.uclv.edu.cu/repository/download-docker/linux/debian/gpg -O - | apt-key add -

Actualización:

apt-get update

Instalación:

apt-get install -y docker-ce

Comprobar:

docker info

La salida debe parecerse a esta:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.3
Storage Driver: devicemapper
 Pool Name: docker-254:1-163113-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem:
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 305.7 MB
 Data Space Total: 107.4 GB
 Data Space Available: 6.45 GB
 Metadata Space Used: 729.1 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.90 (2014-09-01)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1000 MiB
Name: server.domain.cu
ID: EMRC:BTXV:UPON:VSHK:AD7K:O35C:FY6S:RM6Y:X4NX:SI46:AUZR:IYZH
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
Insecure Registries:
 127.0.0.0/8

Luego puede adicionarle el registro https://docker.uclv.cu