docker-machine

docker-machine create node without tls verification

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I create a node with docker-machine docker-machine create -d virtualbox node1 it is created with tls verification enabled for docker deamon which made things a bit more of a hassle than normal for swarm. I want to create a node with docker-machine without tls verification for testing purpose. I tried with: docker-machine create -d virtualbox --engine-tls false node1 and docker-machine create -d virtualbox --engine-tls-verify false node1 and docker-machine create -d virtualbox --engine-opt-tls false node1 回答1: try: docker-machine create

docker-machine boot2docker root password

青春壹個敷衍的年華 提交于 2019-12-03 01:21:08
问题 Haven't found an answer anywhere... I created a VM (boot2docker) using docker-machine. I need to edit some files using root. What is the root password in boot2docker? 回答1: If you only have a single docker machine, you simply do: $ docker-machine ssh If you have multiple machines, you need to find your "machine name" first: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default * virtualbox Running tcp://192.168.99.101:2376 v1.10.2 From the above, you can see that default

Docker Compose Up gives “The system cannot find the file specified.” error

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: However, whenever I run docker-compose up I get the following error message: Traceback (most recent call last): File "<string>", line 3, in <module> File "compose\cli\main.py", line 65, in main File "compose\cli\main.py", line 117, in perform_command File "compose\cli\main.py", line 849, in up File "compose\project.py", line 372, in up File "compose\project.py", line 539, in warn_for_swarm_mode File "site-packages\docker\api\daemon.py", line 33, in info File "site-packages\docker\utils\decorators.py", line 47, in inner File "site-packages

Network timed out while trying to connect to https://index.docker.io

早过忘川 提交于 2019-12-03 00:02:09
问题 I installed Docker-Toolbox just now while following their webpage I started with Docker QuickStart Terminal and see following ## . ## ## ## == ## ## ## ## ## === /"""""""""""""""""\___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\_______/ docker is configured to use the default machine with IP 192.168.99.100 For help getting started, check out the docs at https://docs.docker.com bash-3.2$ But when I try to perform docker pull hello-world , this is what I see bash-3

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

偶尔善良 提交于 2019-12-02 23:57:34
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 JRE cacert. But this didn't happen, the Java service still fails to access external HTTPS URL. Any idea

How to install new packages into non-root Docker Container?

孤街浪徒 提交于 2019-12-02 21:40:49
I'm trying to extend a docker container for SOLR. I just want to install vim into it. But when I run the docker build it complains that I'm not root. This is the DockerFile that I'm extending: https://github.com/makuk66/docker-solr/blob/master/5.3/Dockerfile And my build file is this: FROM makuk66/docker-solr MAINTAINER OCSCommerce Team <support@ocscommerce.com> RUN apt-get update RUN apt-get --assume-yes install vim COPY home/ocscommerce /etc/solr/home Then it outputs this: 192.168.99.100 localhost:solr$ docker build -t ocscommerce/solr . Sending build context to Docker daemon 39.66 MB Step 0

How is a Docker Machine marked as active?

雨燕双飞 提交于 2019-12-02 19:05:12
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 this? For example, I am running the Docker Machine on Windows 10, by making it active does it mean I

Is it safe to clean docker/overlay2/

左心房为你撑大大i 提交于 2019-12-02 17:52:17
I got some docker containers running on AWS EC2, the /var/lib/docker/overlay2 folder grows very fast in disk size. I'm wondering if it is safe to delete its content? or if docker has some kind of command to free up some disk usage. Thanks! UPDATE: I actually tried docker system prune -a already, which reclaimed 0Kb. Also my /docker/overlay2 disk size is much larger than the output from docker system df After reading docker documentation and BMitch's answer, I believe it is a stupid idea to touch this folder and I will try other ways to reclaim my disk space. Docker uses /var/lib/docker to

Docker - image operating system “windows” cannot be used on this platform

假装没事ソ 提交于 2019-12-02 17:50:57
I tried this on my Windows 10 machine: Dockerfile: From microsoft/nanoserver CMD ["echo", "Hello World"] PS C:\FSD\Docker\Trial1> docker build -t lea/leatest . Sending build context to Docker daemon 2.048kB Step 1/2 : FROM microsoft/nanoserver latest: Pulling from microsoft/nanoserver bce2fbc256ea: Pulling fs layer 58f68fa0ceda: Pulling fs layer image operating system "windows" cannot be used on this platform BMitch Your Docker host is configured to run Linux containers inside of a VM. To run Windows containers, you need to "Switch to Windows containers" in the Docker menu. Documentation on

How to use the official docker elasticsearch container?

雨燕双飞 提交于 2019-12-02 17:47:05
I have the following Dockerfile: FROM docker.elastic.co/elasticsearch/elasticsearch:5.4.0 RUN elasticsearch EXPOSE 80 I think the 3rd line is never reached. When I try to access the dockercontainer from my local machine through: 172.17.0.2:9300 I get nothing, what am I missing? I want to access elasticsearch from the local host machine. I recommend using docker-compose (which makes lot of things much easier) with following configuration. Configuration (for development) Configuration starts 3 services: elastic itself and extra utilities for development like kibana and head plugin (these could