docker-machine

Using an IDE while developing on a docker container

一世执手 提交于 2019-11-28 04:54:12
There is something that I am not getting when developing an application while using docker containers. Lets say I am developing a java application and I set up a java container with jdk 8 base image, I still need to install java 8 jdk on my local development machine, since the IDE which I am going to use is going to look for runtime libraries on the local machine not the docker container. Is this right or am I missing something? Somethings I will be able to do entirely on the docker container like setting up a database but some things I will also have to do on my local development machine and

Docker多主机管理(八)

徘徊边缘 提交于 2019-11-28 03:13:00
docker多主机管理 前面我们的实验环境中只有一个 docker host,所有的容器都是运行在这一个 host 上的。但在真正的环境中会有多个 host,容器在这些 host 中启动、运行、停止和销毁,相关容器会通过网络相互通信,无论它们是否位于相同的 host。 对于这样一个 multi-host 环境,我们将如何高效地进行管理呢? 我们面临的第一个问题是:为所有的 host 安装和配置 docker。 对于多主机环境手工方式效率低且不容易保证一致性,针对这个问题,docker 给出的解决方案是 Docker Machine。 用 Docker Machine 可以批量安装和配置 docker host,这个 host 可以是本地的虚拟机、物理机,也可以是公有云中的云主机。 Docker Machine 为这些环境起了一个统一的名字:provider。对于某个特定的 provider,Docker Machine 使用相应的 driver 安装和配置 docker host 安装docker machine 在172.20.10.2主机上面安装docker machine 然后通过docker-machine命令在172.20.10.7和172.20.10.9两个主机上部署docker 官方安装文档:https://docs.docker.com/machine

docker-machine create node without tls verification

僤鯓⒐⒋嵵緔 提交于 2019-11-27 19:30:29
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 try: docker-machine create -d virtualbox --engine-opt tlsverify=false node1 and after

Error checking TLS connection: Error checking and/or regenerating the certs

橙三吉。 提交于 2019-11-27 19:21:49
After I restarted my windows i cannot connect to docker machine running in Oracle Virtual Box. When i start Docker QuickStart Terminal every thing looks fine, it's coming up OK and it gives me this message: 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 but when i do: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default - virtualbox Timeout and: λ docker images An error occurred trying to connect: Get http://localhost:2375/v1.21/images/json: dial tcp 127.0.0.1:2375: ConnectEx

Docker error: client and server don't have same version

ぐ巨炮叔叔 提交于 2019-11-27 17:39:30
Since I just updated Docker to 1.1.0 I get: Error response from daemon: client and server don't have same version (client : 1.13, server: 1.12) Do you know how to fix this? I switched back to 1.0.1 and everything works again. It looks like you need to upgrade the VM after installing boot2docker: if you are upgrading from boot2docker 0.12 or later, you can update your existing virtual machine (after upgrading using the installer) using boot2docker stop && boot2docker download && boot2docker up - and you will not lose your existing data. ( https://github.com/boot2docker/osx-installer/releases

Docker daemon config file on boot2docker / docker-machine / Docker Toolbox

瘦欲@ 提交于 2019-11-27 17:36:58
Where can I find docker daemon config file on boot2docker machine? According to this topic: Dockerfile: Docker build can't download packages: centos->yum, debian/ubuntu->apt-get behind intranet I want to set '--dns' in DOCKER_OPTS , but I can't find this config file either at /etc/default or anywhere else. Inside boot2docker ( boot2docker ssh ) / docker-machine ( docker-machine ssh default ) , open or create the file /var/lib/boot2docker/profile and add the following line: EXTRA_ARGS="--dns 192.168.1.145" Also works for: EXTRA_ARGS="--insecure-registry myinternaldocker" After the change you

Inject host's SSH keys into Docker Machine with Docker Compose

痞子三分冷 提交于 2019-11-27 17:15:33
问题 I am using Docker on Mac OS X with Docker Machine (with the default boot2docker machine), and I use docker-compose to setup my development environment. Let's say that one of the containers is called " stack ". Now what I want to do is call: docker-composer run stack ssh user@stackoverflow.com My public key (which has been added to stackoverflow.com and which will be used to authenticate me) is located on the host machine. I want this key to be available to the Docker Machine container so that

Docker-machine error “Could not find matching IP for MAC address” on Windows 10

与世无争的帅哥 提交于 2019-11-27 14:32:25
问题 I got strange problem with docker-machine on windows 10. And I still cannot find solution. It used to work before, but after some update of Windows 10 I began to get error "Could not find matching IP for MAC address ...". This error appears on any action with docker-machine. For example, with docker-machine ls: I tried to reinstall dockertools with virtual box (with different network drivers). Tried to install latest version of virtual box. Remove and recreate docker virtual machine. Remove

How can I use a local file on container?

本小妞迷上赌 提交于 2019-11-27 11:42:55
问题 I'm trying create a container to run a program. I'm using a pre configurate image and now I need run the program. However, it's a machine learning program and I need a dataset from my computer to run. The file is too large to be copied to the container. It would be best if the program running in the container searched the dataset in a local directory of my computer, but I don't know how I can do this. Is there any way to do this reference with some docker command? Or using Dockerfile? 回答1:

Is there a way to force docker-machine to create vm with a specific ip?

房东的猫 提交于 2019-11-27 11:35:46
Is there a way to force docker-machine to create the docker vm with a specific ip (assuming that ip is available)? VonC That is actively requested in docker/machine issue 1709 I want to be able to specify the IP address of a VM (i.e. the value that's listed under "URL" in docker-machine ls) when I create it with docker-machine create. I want this because I've been relying on boot2docker's default address of 192.168.59.103, but now it varies from machine to machine. The current workaround : My virtualbox has dhcp range 192.168.99.100 - 255 and I want to set an IP before 100. I've found a simple