This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dockerinstall [2016/11/30 23:24] moliver |
dockerinstall [2020/09/03 22:26] moliver@uclv |
||
---|---|---|---|
Line 3: | Line 3: | ||
Puede encontrar la ayuda completa en esta página https://docs.docker.com/installation/ | Puede encontrar la ayuda completa en esta página https://docs.docker.com/installation/ | ||
- | **Debian** | + | **Debian o Ubuntu** |
- | https://docs.docker.com/installation/debian/ | + | |
- | Para jessie: | + | Instalación de paquetes necesarios: |
+ | <code> | ||
+ | apt-get update | ||
+ | apt-get install -y apt-transport-https | ||
+ | </code> | ||
- | Make sure you enabled the jessie-backports repository, as stated above. | + | Adicionar el repositorio en la UCLV |
+ | |||
+ | Debian | ||
<code> | <code> | ||
- | deb http://repos.uclv.edu.cu/debian jessie-backports main non-free contrib | + | cat > /etc/apt/sources.list.d/docker.list << 'EoT' |
+ | deb https://nexus.uclv.edu.cu/repository/download-docker/linux/debian buster stable | ||
+ | EoT | ||
</code> | </code> | ||
- | To install the latest Debian package (may not be the latest Docker release): | + | |
+ | Ubuntu | ||
+ | <code> | ||
+ | cat > /etc/apt/sources.list.d/docker.list << 'EoT' | ||
+ | deb https://nexus.uclv.edu.cu/repository/download-docker/linux/ubuntu focal stable | ||
+ | EoT | ||
+ | </code> | ||
+ | |||
+ | Adicionar la llave con la que se firman los paquetes | ||
+ | |||
+ | <code> | ||
+ | wget -q https://nexus.uclv.edu.cu/repository/download-docker/linux/debian/gpg -O - | apt-key add - | ||
+ | </code> | ||
+ | |||
+ | Actualización: | ||
<code> | <code> | ||
apt-get update | apt-get update | ||
- | apt-get install docker.io | + | </code> |
+ | |||
+ | Instalación: | ||
<code> | <code> | ||
+ | apt-get install -y docker-ce | ||
+ | </code> | ||
- | To verify that everything has worked as expected: | + | Comprobar: |
+ | <code> | ||
+ | docker info | ||
+ | </code> | ||
+ | |||
+ | La salida debe parecerse a esta: | ||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
- | docker run --rm hello-world | ||
- | This command downloads and runs the hello-world image in a container. When the container runs, it prints an informational message. Then, it exits. | + | Luego puede adicionarle el registro https://docker.uclv.cu |