User Tools

Site Tools


rancheruclv

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
rancheruclv [2016/11/25 16:15]
moliver
rancheruclv [2020/04/10 17:38] (current)
Line 7: Line 7:
 Instalar el sistema operativo limpio. Se recomienda un Ubuntu pero puede ser cualquier sistema que soporte docker segun la ayuda. Instalar el sistema operativo limpio. Se recomienda un Ubuntu pero puede ser cualquier sistema que soporte docker segun la ayuda.
  
-Instalar docker ​para debianhttps://docs.docker.com/engine/installation/​linux/​debian/​ +Instalar docker ​según la ayuda aquíhttp://redtic.uclv.cu/dokuwiki/dockerinstall
-Para jessie: +
-<​code>​ +
-apt-key adv --keyserver hkp://​p80.pool.sks-keyservers.net:​80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D +
-cat >  /​etc/​apt/​sources.list.d/​docker.list << '​EoT'​+
  
-deb https://apt.dockerproject.org/repo debian-jessie main+Si no se tiene conexion directa con Internet o a traves de un proxy se puede usar el servicio de caché del Nexus de la UCLV como se explica aquí: http://redtic.uclv.cu/dokuwiki/dockernexus
  
-EoT+Instalar racher-server 
 +<​code>​ 
 +docker run -d --restart=unless-stopped -p 8080:8080 rancher/​server
  
-apt-get install apt-transport-https +o
-apt-get update +
-apt-cache policy docker-engine +
-apt-get -y install docker-engine+
  
-mkdir -p /​etc/​systemd/​system/​docker.service.d +docker run -d -e http_proxy="​http://​10.12.1.7:​3128" ​-e https_proxy="https://​10.12.1.7:​3130" ​
-cat > /​etc/​systemd/​system/​docker.service.d/​http-proxy.conf << '​EoT'​ +    -e no_proxy="localhost,​127.0.0.1,​docker-registry.uclv.edu.cu"​ \ 
-[Service] +    -e NO_PROXY="localhost,​127.0.0.1,​docker-registry.uclv.edu.cu" ​\ 
-Environment="HTTPS_PROXY=http://​10.12.1.7:​3130/" ​"​HTTP_PROXY=http://​10.12.1.7:​3130/" "​NO_PROXY=localhost,​127.0.0.1,​docker-registry.uclv.edu.cu"​ +    ​--restart=unless-stopped -p 8080:8080 rancher/​server
-EoT+
  
- 
-service docker start 
- 
-#​Comprobando 
-docker run hello-world 
- 
- 
- 
-</​code>​ 
- 
-Instalar docker para ubuntu: apt-get install docker.io 
- 
- 
- 
-Start Rancher Server 
- 
-<​code>​ 
-docker run -d --restart=unless-stopped -p 8080:8080 rancher/​server 
 # Tail the logs to show Rancher # Tail the logs to show Rancher
 #docker logs -f <​CONTAINER_ID>​ #docker logs -f <​CONTAINER_ID>​
rancheruclv.1480090543.txt.gz · Last modified: 2020/04/10 17:38 (external edit)