Tag: vagrant

Vagrant:在Windows上与boot2docker文件夹同步文件夹

我尝试使用boot2docker Vagrant框(在Windows 8.1上)同步文件夹: Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.hostname = "docker-host" config.vm.box = "hashicorp/boot2docker" config.vm.synced_folder "./src", "/sync/src" end 我尝试了几种方法来同步文件夹: 如果我没有定义types(如何同步),Vagrant使用SMB。 所以这就像我写的: config.vm.synced_folder "./src", "/sync/src", type: "smb" 有了这个configuration挂载失败(我input我login的Windows帐户的凭据): $ vagrant up Bringing machine 'default' up with 'virtualbox' provider… ==> default: Checking if box 'hashicorp/boot2docker' is up to […]

docker-machine ssh进入Vagrant VM失败

我有两个在VirtualBox上运行Ubuntu16.04的stream浪虚拟机,并安装了docker。 我想为在这两个虚拟机上运行的Docker容器创build一个覆盖networking。 因此,我在这里跟着教程。 我创build了虚拟机,试图运行eval "$(docker-machine env mh-keystore)" 。 但是,它失败,出现以下错误: Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "172.28.128.5:2376": dial tcp 172.28.128.5:2376: getsockopt: connection refused You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. Be advised that this will trigger a Docker daemon restart which […]

如何将来自Docker的http请求发送到本地主机或虚拟机

作为Docker和VM的新手,我遇到了一个障碍。 我有一个节点应用程序,需要从Docker container发送POST请求到Virtual Machine或我的local machine 。 我已经通过了Docker文档的阅读,但仍然不明白我需要做什么才能做到这一点。 那么我怎样才能从运行在Docker Container中的节点应用程序发送一个http请求到我的Vagrant Box ?

如何用Vagrant和Kubernetes列出Docker镜像

我尝试在testing环境中安装带有Kubernetes的Stratos来构buildStratos.I下载Kubernetes二进制文件,并将一个Dockerregistryconfiguration到VAGRANT_KUBERNETES_SETUP文件夹中(在2.c.i中)。但是它给出了3个失败单元(docker.service, setup-network-environment.service和docker.socket)当我login到主节点。 所以我不能通过使用“docker images”命令查看Docker镜像。当我查看Docker镜像时, “FATA [0000]无法连接到Docker守护进程,是否在此主机上运行”docker -d“? 我该如何解决这个问题?我是否需要以不同的方式安装与vagrant工作?

使用Vagrant和Docker提供程序构buildDockerfile:多行命令链接返回错误

我正在运行Vagrant 1.7.2,通过docker提供程序构buildDocker镜像。 我的Vagrantfile看起来像这样: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.provider "docker" do |d| d.build_dir = "." d.force_host_vm = true end end 我正在使用这篇文章中提出的指导方针来优化Docker,但是我无法在多行上链接命令。 为了可读性,我想避免在同一行上链接命令,所以我的Dockerfile看起来像这样: FROM ubuntu:14.04 RUN sudo apt-get update && sudo apt-get -yf install && sudo apt-get install -y wget && sudo apt-get install -y git 但是,当我运行'vagrant up […]

docker集装箱 – 如何configuration,以便在stream浪汉中运行时获得可行的IP地址?

Docker(www.docker.io)看起来棒极了。 但是,在安装VirtualBox,Vagrant …以及Mac上的Docker之后,我发现无法从另一台计算机(或Mac上的terminal会话)访问在Docker容器中运行的服务。 我试图访问的服务是Redis。 问题似乎是没有路由到分配给Docker容器的IP地址。 在这种情况下,容器的IP是172.16.42.2,而Mac的IP是196.168.0.3。 一对夫妇笔记: 可以访问它 – 但只能从VirtualBox会话中访问。 这可以使用redis-cli -h 172.16.42.2 -p 6379完成。 我已经添加了“config.vm.network:桥接”的VagrantFile试图获得,但没有解决问题。

Vagrant和Docker提供程序:容器未加载,Boot2Docker VM不可用于SSH

我试图部署一个简单的httpd服务器与docker和stream浪,以解决与virtualbox共享文件夹的文件权限问题(我使用rsync与vagrant,并运行Windows作为主机) 当我运行vagrant up ,虚拟机启动(我可以确认与VBox GUI),但然后vagrant警告说,不能build立与虚拟机的SSH连接,容器永远不会被加载。 在这里, vagrant up的输出: Bringing machine 'default' up with 'docker' provider… ==> default: Docker host is required. One will be created if necessary… default: Vagrant will now create or start a local VM to act as the Docker default: host. You'll see the output of the `vagrant up` for this VM […]

与Docker提供商的stream浪者与rsync通过ssh失败

我有问题与Docker运行Vagrant。 问题是共享文件夹的rsync。 WDFM32388067A:vagranttest d022051$ vagrant up Bringing machine 'default' up with 'docker' provider… ==> default: Docker host is required. One will be created if necessary… default: Vagrant will now create or start a local VM to act as the Docker default: host. You'll see the output of the `vagrant up` for this VM below. default: […]

在Windows上使用Vagrant的docker提供程序的Rsync“权限被拒绝”错误

刚从官网安装了vagrant 1.7.4,除了其他的软件:Virtual Box,Cygwin(rsync和openssh)。 像ubuntu / trusty或者centos / 7这样的其他软件似乎可以正常工作。 当我尝试使用docker作为提供程序时出现错误。 这是我的stream浪文件 Vagrant.configure(2) do |config| config.vm.network "public_network", ip: "192.168.1.103" config.ssh.insert_key=true config.vm.provider "docker" do |d| #d.vagrant_vagrantfile = "vagrantfile-boot2docker" d.build_dir = "." end ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin" end 这是在控制台中发生的事情。 $ vagrant up Bringing machine 'default' up with 'docker' provider… ==> default: Docker host is required. One will […]