This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rancheruclv [2016/12/01 16:18] moliver |
rancheruclv [2020/04/10 17:38] (current) |
||
---|---|---|---|
Line 9: | Line 9: | ||
Instalar docker según la ayuda aquí: http://redtic.uclv.cu/dokuwiki/dockerinstall | Instalar docker según la ayuda aquí: http://redtic.uclv.cu/dokuwiki/dockerinstall | ||
+ | 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 | ||
- | + | Instalar racher-server | |
- | + | ||
- | + | ||
- | mkdir -p /etc/systemd/system/docker.service.d | + | |
- | cat > /etc/systemd/system/docker.service.d/http-proxy.conf << 'EoT' | + | |
- | [Service] | + | |
- | 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" | + | |
- | EoT | + | |
- | + | ||
- | systemctl daemon-reload | + | |
- | + | ||
- | service docker restart | + | |
- | + | ||
- | #Comprobando | + | |
- | docker run hello-world | + | |
- | + | ||
- | + | ||
- | + | ||
- | </code> | + | |
- | + | ||
- | Instalar docker para ubuntu: apt-get install docker.io | + | |
- | + | ||
- | + | ||
- | + | ||
- | Start Rancher Server | + | |
<code> | <code> | ||
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server | docker run -d --restart=unless-stopped -p 8080:8080 rancher/server |