This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Docker ===== Mis apuntes de Docker. ==== En CentOS ==== <code> yum update cat >/etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF yum install docker-engine systemctl start docker systemctl enable docker usermod -aG docker your_username </code> Para un demo que estaba haciendo necesitaba Grafana, con este comando se levanta un container con dicho software: <code> docker run -i -p 3000:3000 grafana/grafana </code> ==== Ver los contenedores corriendo ==== <code> $ docker ps </code> ==== Ver todos los contenedores ==== <code> $ docker ps -a </code> ==== Ingresar a un contenedor ==== <code> $ docker exec -it c3b81d284d31 bash </code> ==== Detener un contenedor ==== <code> $ docker stop [IMAGE ID] </code> ==== Eliminar un contenedor ==== <code> $ docker rm [CONTAINER ID] </code> ==== Eliminar una imagen ==== <code> docker rmi [IMAGE ID] </code>