This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rancheruclv [2016/11/18 18:23] 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 debian: https://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> | |
- | apt-get install apt-transport-https | + | docker run -d --restart=unless-stopped -p 8080:8080 rancher/server |
- | apt-get update | + | |
- | apt-cache policy docker-engine | + | |
- | apt-get -y install docker-engine | + | |
- | service docker start | + | |
- | + | ||
- | #Comprobando | + | |
- | docker run hello-world | + | |
+ | o | ||
+ | docker run -d -e http_proxy="http://10.12.1.7:3128" -e https_proxy="https://10.12.1.7:3130" \ | ||
+ | -e no_proxy="localhost,127.0.0.1,docker-registry.uclv.edu.cu" \ | ||
+ | -e NO_PROXY="localhost,127.0.0.1,docker-registry.uclv.edu.cu" \ | ||
+ | --restart=unless-stopped -p 8080:8080 rancher/server | ||
+ | # Tail the logs to show Rancher | ||
+ | #docker logs -f <CONTAINER_ID> | ||
</code> | </code> | ||
- | Instalar docker para ubuntu: apt-get install docker.io | ||