User Tools

Site Tools


dockerinstall

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dockerinstall [2015/07/28 16:14]
moliver
dockerinstall [2020/09/03 22:26] (current)
moliver@uclv
Line 1: Line 1:
 +**Instalación de Docker**
 +
 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/+ 
 +Instalación de paquetes necesarios: 
 +<​code>​ 
 +apt-get update 
 +apt-get install -y apt-transport-https  
 +</code> 
 + 
 +Adicionar el repositorio en la UCLV 
 + 
 +Debian 
 +<​code>​ 
 +cat >  ​/etc/​apt/​sources.list.d/docker.list << '​EoT'​ 
 +deb https://​nexus.uclv.edu.cu/​repository/​download-docker/​linux/​debian ​buster stable 
 +EoT 
 +</​code>​ 
 + 
 + 
 +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>
  
-Hay diferencias entre la version 8 (jessie) y las anteriores.+Adicionar ​la llave con la que se firman los paquetes
  
-Para la version 8:+<​code>​ 
 +wget -q https://​nexus.uclv.edu.cu/​repository/​download-docker/​linux/​debian/​gpg -O - | apt-key add - 
 +</​code>​
  
-Make sure you enabled the jessie-backports repository, as stated above.+Actualización:​ 
 +<​code>​ 
 +apt-get update 
 +</​code>​
  
-To install the latest Debian package (may not be the latest Docker release):+Instalación: 
 +<​code>​ 
 +apt-get install -y docker-ce 
 +</​code>​
  
-  apt-get update +Comprobar:​ 
-  ​apt-get install ​docker.io+<​code>​ 
 +docker ​info 
 +</​code>​
  
-To verify that everything has worked as expected:+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 containerWhen the container runs, it prints an informational message. Then, it exits.+Luego puede adicionarle el registro https://​docker.uclv.cu
  
dockerinstall.1438100096.txt.gz · Last modified: 2020/04/10 17:38 (external edit)