This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dockerproxyrepo [2016/11/30 21:03] moliver |
dockerproxyrepo [2016/12/01 02:07] moliver |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
Referencias: | Referencias: | ||
- | https://docs.docker.com/engine/admin/systemd/ | ||
https://blog.docker.com/2015/10/registry-proxy-cache-docker-open-source/ | https://blog.docker.com/2015/10/registry-proxy-cache-docker-open-source/ | ||
- | **Configuración del server** | + | https://docs.docker.com/engine/admin/systemd/ |
- | + | ||
- | https://blog.docker.com/2015/10/registry-proxy-cache-docker-open-source/ | + | |
- | + | ||
- | se peude usar tambien nexus3. mirar en otra parte de esta wiki para ayuda | + | |
- | + | ||
- | + | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | **Para usarlo en el cliente:** | + | |
- | + | ||
- | + | ||
- | Ejemplo: | + | |
- | + | ||
- | /etc/default/docker | + | |
- | <code> | + | |
- | DOCKER_OPTS="--dns 10.12.1.50 --registry-mirror=https://nexus.uclv.edu.cu --insecure-registry nexus.uclv.edu.cu" | + | |
- | </code> | + | |
- | + | ||
- | /lib/systemd/system/docker.service | + | |
- | <code> | + | |
- | [Unit] | + | |
- | Description=Docker Application Container Engine | + | |
- | Documentation=https://docs.docker.com | + | |
- | After=network.target docker.socket | + | |
- | Requires=docker.socket | + | |
- | + | ||
- | [Service] | + | |
- | Type=notify | + | |
- | EnvironmentFile=/etc/default/docker | + | |
- | ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_OPTS | + | |
- | ExecReload=/bin/kill -s HUP $MAINPID | + | |
- | LimitNOFILE=infinity | + | |
- | LimitNPROC=infinity | + | |
- | LimitCORE=infinity | + | |
- | TimeoutStartSec=0 | + | |
- | Delegate=yes | + | |
- | KillMode=process | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=multi-user.target | + | |
- | </code> | + | |
- | comproabar con | ||
- | <code> | ||
- | systemctl daemon-reload | ||
- | service docker restart | ||
- | docker info | ||
- | systemctl show docker | ||
- | </code> | ||
- | Debe salir algo así: | ||
- | <code> | ||
- | Containers: 0 | ||
- | Running: 0 | ||
- | Paused: 0 | ||
- | Stopped: 0 | ||
- | Images: 0 | ||
- | Server Version: 1.12.3 | ||
- | Storage Driver: aufs | ||
- | Root Dir: /var/lib/docker/aufs | ||
- | Backing Filesystem: extfs | ||
- | Dirs: 0 | ||
- | Dirperm1 Supported: true | ||
- | Logging Driver: json-file | ||
- | Cgroup Driver: cgroupfs | ||
- | Plugins: | ||
- | Volume: local | ||
- | Network: overlay bridge host null | ||
- | 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: 4 | ||
- | Total Memory: 1000 MiB | ||
- | Name: debian-jessie-amd64-7945 | ||
- | ID: BZNV:GF4N:PY5K:7MOR:73EJ:AQHL:ALPE:7R7S:JAJZ:O2BS:IHLZ:54BT | ||
- | 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: | ||
- | nexus.uclv.edu.cu | ||
- | 127.0.0.0/8 | ||
- | </code> | ||