docker-machine

Docker pull failed with request canceled while waiting for connection

瘦欲@ 提交于 2019-12-08 06:31:48
问题 I am trying to pull images to default docker machine. But I always get docker@default:/etc$ docker run hellow-world Unable to find image 'hellow-world:latest' locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'. docker@default:/etc$ Even if i give --dns option same error docker@default:/etc$ docker run hellow-world --dns=8.8.8.8 Unable

windows上使用docker-machine创建docker

感情迁移 提交于 2019-12-08 04:26:24
安装 docker-ce-desktop-windows 要windows10系统,并且开启虚拟化 安装完成之后,命令行查看docker-machine版本 docker-machine version 创建docker demo docker-machine create demo 下载安装可能很慢,需要翻墙 安装完成之后,查看当前安装好或正在运行的docker-machine docker-machine ls 进入demo docker-machine ssh demo 查看docker版本,docker version 停止demo docker-machine stop demo 删除demo docker-machine rm demo 把docker-machine里的server作为本地的server 打开demo的环境变量 docker-machine env demo 设置docker-machine环境给本地docker使用,输入红框内的命令 @FOR /f "tokens=*" %i IN ('docker-machine env demo') DO @%i 如果不想使用demo里的docker作为server,使用如下命令 docker-machine env --unset 输入红框的命令 @FOR /f "tokens=*" %i IN (

Docker-machine Google (GCE) driver not working, unable to create instance

余生长醉 提交于 2019-12-08 04:14:10
问题 Okay, this is very easy to reproduce and incredibly frustrating. Would be super grateful for any help or advice! I'm using Docker for Mac, running on OS X El Capitan (10.11.6). The gist is that Docker seems to not work with Google Compute Engine (GCE) via the Docker GCE driver (Docker official docs reference here). 1: Sign up for a new free GCP (Google Cloud) account at http://console.cloud.google.com/. Also download and install the Google Cloud SDK from here: https://cloud.google.com/sdk/. 2

docker-machine error to create default machine

核能气质少年 提交于 2019-12-08 03:16:51
问题 I'm trying to use docker-machine and virtualbox inside a container. The host: Ubuntu 16.04 I installed in the host sudo apt-get install linux-headers-generic virtualbox-dkms The Dockerfile definition FROM ubuntu:16.04 RUN apt-get update && apt-get install -y \ ca-certificates \ curl \ software-properties-common \ --no-install-recommends \ build-essential && \ curl -sSL https://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add - && \ echo "deb http://download.virtualbox.org

eval “$(docker-machine env default)” leads to Error checking TLS connection

和自甴很熟 提交于 2019-12-08 00:25:33
问题 I've installed Docker on my Mac about a month ago, and I now wanted to use it again. The command eval "$(docker-machine env default)" used to work perfectly before, but I now get an error: Error checking TLS connection: default is not running. Please start it in order to use the connection settings I searched around for this error, but I can't really find anything about it. Does anybody know what I should do to solve this? All tips are welcome! 回答1: Your boot2docker virtual machine must be

Unable to run Docker Toolbox on windows 10 home even after enabling virtualization from BIOS settings

旧街凉风 提交于 2019-12-07 20:37:13
问题 On running docker quickstart terminal I get the following error: Running pre-create checks... Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue... I have tried everything from enabling the virtualization from the bios setting to reinstalling the toolbox but this error doesn't seem to go away. I read that since Windows 10

Run elasticsearch with docker

只谈情不闲聊 提交于 2019-12-07 19:07:49
问题 I am new with elasticsearch so pardon me if my question is stupid. I am try to run it with docker. After i pulled elasticsearch image from docker hub, i ran it with command: docker run -p 9200:9200 -p 9300:9300 --name=ES elasticsearch But when i opened http://192.168.99.100:9200 (my docker-machine ip is 192.168.99.100 ) the page is not available. I tried to change my elasticsearch.yml like below: network.publish_host: 192.168.99.100 but it doesn't work. Anyone help me out? Thanks. update 1 I

bindfs - Doesn't work for folder inside “/proc”

放肆的年华 提交于 2019-12-07 15:53:42
问题 Bindfs doesn't work for folder inside "/proc"... [root@some_host some_folder]# bindfs --map=root/<MY_USER> "/proc/<SOME_PID>/<SOME_FOLDER>" "/home/<MY_USER>/<SOME_FOLDER>" Failed to resolve source directory `/proc/<SOME_PID>/<SOME_FOLDER>': No such file or directory [root@some_host some_folder]# ls "/proc/<SOME_PID>/<SOME_FOLDER>" some_file Why? Thanks! UPDATE: Example with Docker container... I ended up finding out that for some reason this command... sudo bindfs --map=root/eduardo "/proc/$

How to downgrade version of docker used by docker-machine and boot2docker?

旧时模样 提交于 2019-12-07 14:13:56
问题 I am using docker-machine on OS:X. I would like to install Docker 1.11.2 into my boot2docker machine, however it looks like the combination of docker-machine and boot2docker are always pulling the latest release of boot2docker. I have tried replacing ~/.docker/machine/machines/default/boot2docker.iso with a manually downloaded iso matching 1.11.2, however this doesn't seem to actually change the version of docker. I do not see anything listed in docker-machine documentation which suggests it

Using docker and hosts file

余生长醉 提交于 2019-12-07 13:29:38
问题 I'm trying to get an hbase container running, and the container requires some stuff which means the docker host need to be available as "docker". We achieve this with setting the docker ip in the hosts file with docker. However, when I run: docker ps it tells me that the certificate is for localhost and not docker. The following works: docker --tlsverify=false ps My questions are: * Is it possible to "update" something so that docker ps works? * Is it possible to turn off tls verification