boot2docker

docker can't connect to boot2docker because of tcp timeout

余生长醉 提交于 2019-12-03 00:16:59
问题 I'm running Mac OS 10.9.5, I've followed https://docs.docker.com/installation/mac/ to install docker. I get a timeout error message when I run docker even though the boot2docker VM is running in the background. nikhil@macbook ~> boot2docker status running nikhil@macbook ~> boot2docker ip The VM's Host only interface IP address is: 192.168.59.103 nikhil@macbook ~> docker run hello-world 2014/11/01 01:01:31 Post https://192.168.59.103:2376/v1.15/containers/create: dial tcp 192.168.59.103:2376:

Docker: Error response from daemon: rpc error: code = 2 desc = “oci runtime error: exec format error”

∥☆過路亽.° 提交于 2019-12-02 22:44:06
I wrote the following docker file FROM cloudera/quickstart MAINTAINER abhishek "http://www.foobar.com" ADD ./SparkIntegrationTestsAssembly.jar / ADD ./entrypoint.sh / ADD ./twitter.avro / EXPOSE 8020 50070 50010 50020 50075 8030 8031 8032 8033 8088 8040 8042 10020 19888 11000 8888 18080 7077 RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] i built my image using the command docker build --tag foobar:auto . The output of this command was Sending build context to Docker daemon 93.1 MB Step 1 : FROM cloudera/quickstart ---> 4239cd2958c6 Step 2 : MAINTAINER abhishek "http://www.foobar.com

Using ssh-agent with docker on macOS

a 夏天 提交于 2019-12-02 21:17:10
I would like to use ssh-agent to forward my keys into the docker image and pull from a private github repo. I am using a slightly modified version of https://github.com/phusion/passenger-docker with boot2docker on Yosemite. ssh-add -l ...key details boot2docker up Then I use the command which I have seen in a number of places (i.e. https://gist.github.com/d11wtq/8699521 ): docker run --rm -t -i -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent my_image /bin/bash However it doesn't seem to work: root@299212f6fee3:/# ssh-add -l Could not open a connection to your authentication agent.

pushing docker image to dockerhub

断了今生、忘了曾经 提交于 2019-12-02 19:15:15
I ve created my own docker file ( that runs a shell script which prints "helloworld"). The image is "hellodocker" and the tag is "mytag" I now have: bash-3.2$ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE hellodocker mytag 3514c8dc11a8 39 minutes ago 2.433 MB busybox buildroot-2013.08.1 d200959a3e91 10 weeks ago 2.489 MB busybox ubuntu-14.04 37fca75d01ff 10 weeks ago 5.609 MB busybox ubuntu-12.04 fd5373b3d938 10 weeks ago 5.455 MB busybox buildroot-2014.02 a9eb17255234 10 weeks ago 2.433 MB busybox latest a9eb17255234 10 weeks ago 2.433 MB docker ps -a CONTAINER ID IMAGE COMMAND

How to deploy Dockerfile and application files to boot2docker

北战南征 提交于 2019-12-02 18:46:52
I'm just starting to learn Docker, and I'm trying to get a simple setup with boot2docker on Windows. I could not find in any tutorial or samples online how to make my project files accessible to the boot2docker VM. I downloaded boot2docker, and succeeded in installing it and getting it up and running. I can also ssh into it and run the hello world docker example, so I know I have a working Docker installation in the VM. Now, the question : How do I get my Dockerfile and my application files on the boot2docker VM so that I can build a Docker container? In other words, I'm trying to do this from

Using docker during the development workflow

故事扮演 提交于 2019-12-02 18:30:30
I'm using boot2docker on OS X and cloned the following repo: https://github.com/enokd/docker-node-hello It basically has a Dockerfile and a very simple express app that prints hello world. Everything runs great when I build and run the image, but of course if I make any changes to index.js on my Mac none of that gets reflected in my running image. I can't seem to find any references on how I'd setup docker so that I can run it in my development environment to automatically pick up my source code changes so I feel like I'm "Doing it wrong". Any suggestions? Here's how I'm currently running it

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 fix “error in run: Failed to get machine ”boot2docker-vm“: machine does not exist”?

情到浓时终转凉″ 提交于 2019-12-02 17:28:16
Running boot2docker with the start | info | stop | delete arguments result in an error message: snowch$ boot2docker start error in run: Failed to get machine "boot2docker-vm": machine does not exist snowch$ boot2docker info error in run: Failed to get machine "boot2docker-vm": machine does not exist snowch$ boot2docker stop error in run: Failed to get machine "boot2docker-vm": machine does not exist snowch$ boot2docker delete error in run: Failed to get machine "boot2docker-vm": machine does not exist The init error was slightly different snowch$ boot2docker init error in run: Failed to

Docker compose, running containers in net:host

荒凉一梦 提交于 2019-12-02 16:27:39
I want to spawn 3 services in the "host" net using docker-compose. Here is my docker-compose.yml file: version: '2' services: mysql: image: mysql net: "host" nginx: image: nginx net: "host" app: image: tomcat net: "host" I got the following error: $ docker-compose up [31mERROR[0m: Validation failed in file '.\docker-compose.yml', reason(s): Unsupported config option for services.app: 'net' Unsupported config option for services.mysql: 'net' Unsupported config option for services.nginx: 'net' I'm using boot2docker on windows. Docker, and Docker-compose version: $ docker -v Docker version 1.10.2

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