User Tools

Site Tools


rancheruclv

This is an old revision of the document!


Rancher is a complete, open source platform for deploying and managing containers in production. It includes commercially-supported distributions of Kubernetes, Mesos, and Docker Swarm, making it easy to run containerized applications on any infrastructure.

Documentos iniciales en: http://docs.rancher.com/rancher/v1.2/en/quick-start-guide/

Instalar el sistema operativo limpio. Se recomienda un Ubuntu pero puede ser cualquier sistema que soporte docker segun la ayuda.

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

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

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

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>
rancheruclv.1480610037.txt.gz · Last modified: 2020/04/10 17:38 (external edit)