docker-machine

How do I forward a docker-machine port to my host port on OSX?

核能气质少年 提交于 2019-12-02 17:37:59
I’m delivering a private docker container in my company and want my colleagues to be able to access in our internal network, the problem is that my guest OS is OSX and as so I can only access my application using the 192.168.99.100:3000 default ip from docker machine. How can I forward the docker-machine 3000 port to my host 80 port? At this time Docker Machine is a virtual machine running under VirtualBox in your machine, so to expose your application port you need to map your virtual machine port to your host port. To achieve this there are two options, but before make sure your Docker

Docker machine timeout - how to fix without destroying the machine?

爷,独闯天下 提交于 2019-12-02 17:04:42
I'm having a recurring problem with Docker Machine - every few days it decides to timeout and I am unable to recover it once this happens. Example docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default virtualbox Timeout Environment Info uname -a Darwin ColeyMBPR 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64 docker version 1.11.0 docker-machine version 0.7.0 vboxmanage --version 5.0.20r106931 Attempted Solutions I've tried the following things in no particular order: Restarting the docker machine. Running

Managing remote docker machines from multiple development machines

♀尐吖头ヾ 提交于 2019-12-02 15:51:19
Can the docker machines created from one developer workstation using docker-machine commands, be managed from another workstation. I am not looking for a solution involving docker swarm, but just docker machine. From my understanding when docker-machine creates the machine on a remote environment like AWS EC2, it creates keys and certs which are then used for TLS based communication to the machine going forward. Therefore, in theory if I copy those keys and certs to another developer machine I should be able to connect to that remote docker machine. However, I would like to know if that is the

docker registry-v2 搭建私有仓库

时间秒杀一切 提交于 2019-12-02 15:16:29
环境:OS X 10.10.5 maven 3.3.9 Docker version 1.12.2 docker-machine version 0.8.2 程序示例为http://www.cnblogs.com/modprobe/p/6001333.html 中提到的服务发现程序 相关代码:https://github.com/li-hong/spring-cloud-demo 一、准备工作,安装docker-toolbox 方法:http://www.docker.com/products/docker-toolbox 安装完毕后使用docker-machine创建一个docker运行环境的虚拟机,或者直接运行toolbox生成 命令: docker-machine create --driver virtualbox default 启动虚拟机 docker-machine start default 停止 docker-machine stop default 使用ssh登录到default docker-machine ssh default 更多命令使用下面的命令进行查看 docker-machine help 查看docker环境 docker-machine env 这时候准备工作就已经完成了 二、编写Dockerfile文件 FROM java:8 #基础镜像

docker-machine boot2docker root password

痴心易碎 提交于 2019-12-02 14:37:29
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? 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 is the name of your machine and you can ssh as follows: $ docker-machine ssh default When you're in, it's a

Docker Machine: No space left on device

倾然丶 夕夏残阳落幕 提交于 2019-12-02 13:48:36
I'm trying to set up Docker Machine with Docker Compose. Scenario 1 (without Docker Machine) If I run docker-compose up -d without Docker Machine, it creates my 3 linked containers as intented (nginx+mongodb+nodejs). Scenario 2 (with Docker Machine) Then I create a VM using Docker Machine and tell Docker to talk to that machine with eval $(docker-machine env streambacker-dev) . At this point, if I ssh to my docker machine and run df -h , I get: If I then run docker-compose up -d , I get a "no space left on device" error while downloading the last container. "tmpfs" seems to be indeed a bit

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

落花浮王杯 提交于 2019-12-02 13:48:28
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.2$ docker run hello-world Unable to find image 'hello-world:latest' locally Pulling repository docker

docker常用命令

ε祈祈猫儿з 提交于 2019-12-02 11:16:50
文章目录 Docker基础命令 执行 Docker 镜像 docker清理命令 Docker的image命令 Docker的container命令 docker的service命令 docker-machine命令 DockerCompose参数详解 build context dockerfile image container_name volumes command links external_links expose ports restart environment pid dns Docker基础命令 docker exec –it 镜像 /bin/bash 进入容器 docker logs 容器id 查看容器运行日志 docker version ## 显示 Docker 版本和信息 docker info ##输出docker应用的信息 docker inspect # 检查 task 或 container docker swarm命令 docker swarm leave –force # 从管理端关闭 swarm 的一个节点 docker swarm init docker swarm join –-token :2377 docker pull 镜像 执行 Docker 镜像 docker run hello-world docker build -t

Docker入门篇

谁说我不能喝 提交于 2019-12-02 10:31:51
No.1 概念 为什么会出现Docker? 一款产品从生产到上线,从操作系统,到运行环境,再到应用配置,往往在开发那里可以正常运行,到了运维那里就挂了,特别是版本升级,不同版本之间的兼容问题,也让运维人员头疼不已,docker应运而生,docker将运行文件、配置环境、运行环境、运行依赖包、操作系统、内核打包成镜像 Docker理念 Docker的目标是Build,Ship and Run Any APP,Anywhere,就是对应用的封装、分发、部署、运行等生命周期的管理,使用户的APP及其运行环境能够做到一次封装,处处运行 Docker三组件 镜像一个只读的模板,可以用来创建Docker容器,一个镜像可以创建多个容器,就相当于Python中的类,可以同过类创建对象 容器 容器可以开发、运行应用,容器就是用镜像创建的运行实例,它可以被启动、删除、停止、开始,每个容器都是相互隔离的,这样能保证平台的安全性 仓库集中存放镜像文件的场所,每个仓库存放好多个镜像,每个镜像有不同的标签(tag),最大的仓库是DockerHub,存放了数据庞大的镜像 Docker为什么这么快 Docker的接触是Linux(LXC)技术,在LXC的基础上进行了进一步的封装,让用户不需要考虑容器的管理,使操作更加简单,从结构上来看,虚拟机的Guest OS层和Hypervisor层被Docker

How to assign different port to container replicas in docker swarm

非 Y 不嫁゛ 提交于 2019-12-02 09:22:19
问题 We are deploying storm supervisor with docker container in docker swarm mode with replica 3. Now we want to access supervisor logs on through browser. We have exposed port 8080 on which we can access storm UI. This is working fine. Now storm also exposes their log files on port 8000. As we have only one nimbus and 3 supervisor, accessing nimbus logs through port 8000 was pretty easy. The problem we faced on supervisor which is deployed using docker swarm service. And in docker swarm service