boot2docker

Docker Swarm集群初探

百般思念 提交于 2020-04-07 05:54:21
前言 相信Docker技术大家都有所了解,单个Docker能发挥的作用毕竟有限,也不便于管理,所以Docker得组集群来使用才能发挥强大的技术优势。既然要组集群那就涉及诸如Docker的资源调度、管理等等一系列问题。目前涉及Docker集群的三个主要的技术无外乎Swarm、 Kubernetes 、Mesos三种。从本文开始作者将会一一实践这几种主要的Docker集群技术,话不多说,现在开始。 注意: 作者的kubernetes相关实践在此 注: 本文首发于 My 公众号 CodeSheep ,可 长按 或 扫描 下面的 小心心 来订阅 ↓ ↓ ↓ 环境准备 Mac OS X 10.13.2 Docker 17.09.1-ce-mac42 (21090) virtualbox(虚拟集群中节点时需要) boot2docker v1.8.0(在虚拟节点中起docker环境时需要) 环境搭建 节点规划如下: 我们需要4个节点(1个master + 3个slave),由于没有真实地4台物理机,所以下文中是靠 docker-machine 、 virtualbox 以及 boot2docker 来虚拟出4个独立IP地址的带docker环境的节点,大家注意! 环境安装: Docker环境安装: Tips : 以前Mac上一般是使用 boot2docker 这个专门为OS X上运行 Docker

Get the size of a Docker image before a pull?

*爱你&永不变心* 提交于 2020-03-13 06:57:07
问题 How does one get the size of a Docker image before they pull it to their machine? 回答1: When you search for a docker image on Docker hub, there will be 2 tabs- Repo Info and Tags . Open Tags tab and you will see the sizes of all the types of images you can pull for that image. 回答2: For image on Docker Hub: curl -s -H "Authorization: JWT " "https://hub.docker.com/v2/repositories/library/<image-name>/tags/?page_size=100" | jq -r '.results[] | select(.name == "<tag-name>") | .images[0].size' |

WIN 7 下修改docker 的配置

喜夏-厌秋 提交于 2020-03-05 14:54:16
安装docker registry docker pull registry docker run -d -p 5000:5000 --restart=always --name cvicse-docker-registry --privileged=true -v /opt/docker-registry:/var/lib/registry registry 获取私有镜像 curl http://192.168.128.135:5000/v2/_catalog Linux 下解决HttpS 转HTTP问题 sudo rm /etc/systemd/system/docker.service.d/override.conf systemctl reset-failed docker.service systemctl start docker.service systemctl daemon-reload systemctl start docker.service docker images 阿里云加速: sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors":["https://aeckruos.mirror.aliyuncs.com"],

exited with code 0 docker

徘徊边缘 提交于 2020-01-30 22:46:22
问题 I'm trying to launch container using docker-compose services.But unfortunetly, container exited whith code 0 . Containers is build thanks to a repository which is from a .tar.gz archive. This archive is a Centos VM. I want to create 6 container from the same archive. Instead of typing 6 times docker command, I would like to create a docker-compose.yml file where i can summarize their command and tag. I have started to write docker-compose.yml file just for create one container. Here is my

exited with code 0 docker

会有一股神秘感。 提交于 2020-01-30 22:43:52
问题 I'm trying to launch container using docker-compose services.But unfortunetly, container exited whith code 0 . Containers is build thanks to a repository which is from a .tar.gz archive. This archive is a Centos VM. I want to create 6 container from the same archive. Instead of typing 6 times docker command, I would like to create a docker-compose.yml file where i can summarize their command and tag. I have started to write docker-compose.yml file just for create one container. Here is my

Docker: how to fix “Layer already being pulled by another client. Waiting”

早过忘川 提交于 2020-01-23 05:54:23
问题 I have a fresh install using boot2docker. (DockerToolbox was giving me the same error. After uninstalling DockerToolbox, I deleted ~/.docker and searched my whole filesystem for anything starting with "docker" and found no other configuration files where things might be hiding.) This is the second command I did, after docker run hello-world : bash-3.2$ docker run -it ubuntu /bin/bash Unable to find image 'ubuntu:latest' locally latest: Pulling from library/ubuntu 6071b4945dcf: Verifying

Docker Installation Error on Windows behind Firewall

99封情书 提交于 2020-01-22 15:33:27
问题 I'm trying to install Docker on a Windows computer but I get this message: Running pre-create checks... (default) No default Boot2Docker ISO found locally, downloading the latest release... Error with pre-create check: "Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.252.124:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host

Docker-machine : ca.pem not found

前提是你 提交于 2020-01-13 10:43:27
问题 Here i am creating a test machine(dev) using the docker machine. $ docker-machine create -d virtualbox dev Creating CA: C:\Users\xxx\.docker\machine\certs\ca.pem Creating client certificate: C:\Users\xxx\.docker\machine\certs\cert.pem Creating VirtualBox VM... Creating SSH key... Starting VirtualBox VM... Starting VM... The vm gets created and runs with out flaws. And here is the error when i run the following command: $ docker-machine env dev open C:\Users\xxx\.docker\machine\machines\dev\ca

Docker-machine : ca.pem not found

守給你的承諾、 提交于 2020-01-13 10:42:52
问题 Here i am creating a test machine(dev) using the docker machine. $ docker-machine create -d virtualbox dev Creating CA: C:\Users\xxx\.docker\machine\certs\ca.pem Creating client certificate: C:\Users\xxx\.docker\machine\certs\cert.pem Creating VirtualBox VM... Creating SSH key... Starting VirtualBox VM... Starting VM... The vm gets created and runs with out flaws. And here is the error when i run the following command: $ docker-machine env dev open C:\Users\xxx\.docker\machine\machines\dev\ca

Docker-machine : ca.pem not found

随声附和 提交于 2020-01-13 10:42:28
问题 Here i am creating a test machine(dev) using the docker machine. $ docker-machine create -d virtualbox dev Creating CA: C:\Users\xxx\.docker\machine\certs\ca.pem Creating client certificate: C:\Users\xxx\.docker\machine\certs\cert.pem Creating VirtualBox VM... Creating SSH key... Starting VirtualBox VM... Starting VM... The vm gets created and runs with out flaws. And here is the error when i run the following command: $ docker-machine env dev open C:\Users\xxx\.docker\machine\machines\dev\ca