docker-machine

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

怎甘沉沦 提交于 2019-12-06 05:29:56
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! Your boot2docker virtual machine must be running inside Virtualbox. List your Docker machines: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM

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

大兔子大兔子 提交于 2019-12-06 04:29:56
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 home doesn't support Hyper-V so one has to use docker toolbox but still this error is coming. Please

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

为君一笑 提交于 2019-12-06 02:30:46
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/$(docker inspect --format {{.State.Pid}} 255d)/root" "/home/eduardo/Data/Temp/20180329.1/root" ... make

如何使用 Docker 组件开发 Django 项目?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 00:50:20
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。自2013年发布以来,无论是从 Github 上的代码活跃度,还是 Redhat 在 RHEL6.5 中集成对 Docker 的支持, 就连 Google 的 Compute Engine 也支持 Docker 在其之上运行。火热程度可见一斑! 本篇文章详细介绍了如何通过 Docker Machine 「系统配置」和 Docker Compose 「多容器应用组装」 提供堆栈完成 Postgres, Redis 和 Django 项目相结合的开发。 而在最后,该堆栈将包括如下每个服务的单独的容器: 一个 Web/ Django 的容器 一个 Nginx 的容器 一个 Postgres 的容器 一个 Redis 的容器 一个 Data 容器 ##本地设置 使用 Docker「v1.6.1」版本我们将使用到 Docker Compose 「v1.2.0」编排一个多容器组成的应用程序,使用 Docker Machine「v0.2.0」创建本地和云的 Docker 主机。 按照指示,分别安装 Docker Compose 和 Machine,然后测试安装结果: $ docker-machine --version docker

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

南笙酒味 提交于 2019-12-05 20:47:49
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 Git commit: 0520e24302 Built: Fri Mar 23 08:31:36 2018 OS/Arch: windows/amd64 Experimental: false

Passing Different Arguments When Running Docker Image Multiple Times

时间秒杀一切 提交于 2019-12-05 18:57:43
I need to give an argument while running Docker Image which will be a number from 0-3. Dockerfile has the following: WORKDIR "mydir/build" CMD ./maker oneapp > /artifacts/oneapp_$1.log ; ./maker twoapp > /artifacts/twoapp_$1.log ; ./maker -j13 threeapp > /artifacts/threeapp_$1.log I will be running the same Docker Image multiple times so I need logs to be saved in /artifacts appended with _0, _1, _2, _3, as appropriate. I tried keeping this in Docker file but don't want to pass this full line as argument while running docker. ENTRYPOINT ["/bin/bash"] ./maker oneapp > /artifacts/oneapp_$1.log ;

Change .docker directory on Windows

大城市里の小女人 提交于 2019-12-05 11:22:55
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! Andrej Stieben 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 .) You simply can define the environment variable HOME before launching a new boot2docker or docker machine session. set HOME=D:\docker (Add it to your user

windows 安装 docker

試著忘記壹切 提交于 2019-12-05 09:00:39
一、下载docker docker 下载 二、安装 2.1 双击下载 程序 2.2 next 2.3 next 2.4 next 2.5 install 三、打开vbox 四、运行 Docker Quickstart Terminal 4.1 这个过程会下载 boot2docker.iso, 并在vbox 上新建default虚拟镜像的 这个过程可能很漫长, 也可能安装不成功。 如果vbox中没有一直没有default的虚拟名,那么可以用下面的方法 4.2 上面如果成功了,请忽略此处,直接跳到 五 4.2.1 docker-machine create --driver virtualbox node1 Running pre-create checks... (node1) No default Boot2Docker ISO found locally, downloading the latest release... (node1) Latest release for github.com/boot2docker/boot2docker is v19.03.5 (node1) Downloading C:\Users\Maibenben\.docker\machine\cache\boot2docker.iso from https://github.com

Cannot create Windows docker machine? “Hyper-V PowerShell Module is not available”

此生再无相见时 提交于 2019-12-05 06:22:38
I just installed docker and tried to create a Windows (not Linux) docker machine but it failed? PS C:\> docker-machine.exe create --driver hyperv default Creating CA: C:\Users\...\.docker\machine\certs\ca.pem Creating client certificate: C:\Users\...\.docker\machine\certs\cert.pem Running pre-create checks... Error with pre-create check: "Hyper-V PowerShell Module is not available" I downloaded the newer version of docker-machine ( https://github.com/docker/machine/releases/tag/v0.15.0 ) and a new error occurred. PS C:\> .\bin\docker-machine-Windows-x86_64.exe create --driver hyperv default

Docker not working in Windows10

天涯浪子 提交于 2019-12-05 03:15:54
I am using Docker version 1.12.2, build bb80604 and VirtualBox 5.1.6 . I was able to install Docker Toolbox correctly but I am not able to start the default VM. I tried to follow the instruction given here but I am still getting The system cannot find the file specified error. I don't have Hyper-V enabled on system. F:\>docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default not found Error open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified. F:\>docker-machine env --shell=cmd open C:\Users\Animesh\.docker\machine