docker-machine

Docker download layers sequentially

喜你入骨 提交于 2019-12-23 09:47:07
问题 is there a way to make docker download the layers of an image sequentially instead of in parallel. I require this due to our repository being very strict (or dodgey) on networking issues. I get a lot of the EOF errors like: time="2016-06-14T13:15:52.936846635Z" level=debug msg="Error contacting registry http://repo.server/v1/: Get http://repo.server/v1/images/b6...be/layer: EOF" time="2016-06-14T13:15:52.936924310Z" level=error msg="Download failed: Server error: Status 0 while fetching image

How do I enable the Docker RestAPI on Windows Containers?

吃可爱长大的小学妹 提交于 2019-12-23 01:26:09
问题 I used this official guide to install Docker Containers on Windows. Everything looks good and I can run IIS on Windows Containers now. However, I don't see it anywhere and have no idea on how to "Enable Rest API" for it. How can I do this? 回答1: (Posted on behalf of the OP) . Finally, I found how to enable Remote API of Docker Containers on Windows. The key point is file daemon.json which place in C:\ProgramData\docker\config . In the guide linked in the question, the author only mention that

How can I run the command to force docker-machine to create a vm with specific address in Windows 10 Home?

怎甘沉沦 提交于 2019-12-22 10:57:57
问题 I've been following this question to force docker-machine to create a vm with specific address Is there a way to force docker-machine to create vm with a specific ip? because I need the docker-machine to work on 192.168.99.100. It seems to work for everybody, but not for me and I think it could be helpful to solve it for Windows Home I'm using: Windows 10 Home build Virtual Box Versión 5.2.8 r121009 (Qt5.6.2) $ docker version Client: Version: 18.03.0-ce API version: 1.37 Go version: go1.9.4

Change .docker directory on Windows

喜你入骨 提交于 2019-12-22 07:01:09
问题 The standard path on Windows where Docker puts stuff is: C:\Users\<USER>\.docker We need to put it here: D:\Docker We couldn't find any info about where or how to change that setting. Any hint appreciated, thanks! 回答1: One solution that works for us is creating a symbolic link: mklink /J "C:\Users\<USER>\.docker" "D:\Docker" But it's not what we call a clean solution. (All credit for the question & this answer goes to IMM0rtalis.) 回答2: You simply can define the environment variable HOME

Not able to connect docker from host when network change Docker for Windows

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 00:19:45
问题 I am not able to connect to docker container when there is network/ip change from office to home. But the same works with localhost or 127.0.0.1 I am connecting to VPN to connect to database. root@1c970ed5cd64:/etc# curl http://localhost:8090/admin/health_check/all {“health”:“passed”}root@1c970ed5cd64:/etc# curl http://192.168.0.103:8090/admin/health_check/all curl: (7) Failed to connect to 192.168.0.103 port 8090: Connection refused When i install docker again everything works fine. I have

mongodb connection refused docker-compose

与世无争的帅哥 提交于 2019-12-21 12:22:37
问题 The dockerfile consists as:- FROM ruby:2.2.3-slim MAINTAINER Milan Rawal <milan@gmail.com> RUN apt-get update && apt-get install -qq -y build-essential nodejs libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core curl htop --fix-missing --no-install-recommends ENV INSTALL_PATH /air_scout RUN mkdir -p $INSTALL_PATH WORKDIR $INSTALL_PATH COPY Gemfile Gemfile RUN bundle install COPY . . RUN bundle exec rake RAILS_ENV=production SECRET_TOKEN

.docker/config.json vs .dockercfg

走远了吗. 提交于 2019-12-21 06:49:12
问题 When I do a docker login to a private repository using docker 1.10.1, an entry is created in my ~/.docker/config.json file. Is this file in the same format as what I see being called a .dockercfg file? Is the config.json file interchangeable with a .dockercfg file? 回答1: I assume config.json is the new .dockercfg file. See "docker/cliconfig/config.go" // ConfigFileName is the name of config file ConfigFileName = "config.json" oldConfigfile = ".dockercfg" The new config file is now documented

Importing self-signed cert into Docker's JRE cacert is not recognized by the service

社会主义新天地 提交于 2019-12-20 10:41:11
问题 A Java Service is running inside the Docker container, which access the external HTTPS url and its self-sign certificate is unavailable to the service/ JRE cacert keystore and therefore connection fails. Hence imported the self-signed certificate of HTTPS external URL into Docker container's JRE cacert keystore. (after checking the $JAVA_HOME env. variable) Restarted the Docker container (using docker restart command), hoping that the service is also get restarted and pick the changes from

How is a Docker Machine marked as active?

不问归期 提交于 2019-12-20 09:46:28
问题 I am working through the Docker Machine User Guide over at https://docs.docker.com/v1.5/machine/. It says: You can see the machine you have created by running the docker-machine ls command again: $ docker-machine ls NAME ACTIVE DRIVER STATE URL dev * virtualbox Running tcp://192.168.99.100:2376 The * next to dev indicates that it is the active host. When I run this I don't see the * next to any machines. What do I need to do to make the machine be marked as active? Are there any benefits to

How to get the port numbers for a service - Docker compose file

拟墨画扇 提交于 2019-12-20 06:14:56
问题 I am trying to start containers with the docker-compose.yml. I am trying to start two services, one is mongo and other is OHIF viewer . Currently I am able to access mongo locally (localhost:27017(after port-forwarding) in desktop whereas OHIF viewer isn't possible (ports aren't visible/empty so, I am not able to access them locally). Can you guide me as to how I can set them? As you can see from my docker-compose file that I have set network_mode:"host" to be able to access them locally in