Questions tagged [boot2docker]

boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs approximately 27 MB and boots in approximately 5 seconds (your mileage may vary).

boot2docker is a lightweight distribution based on Tiny Core Linux made specifically to run containers on Windows and OS X systems. Boot2docker enables Windows and OS X users to easily create lightweight, portable, self-sufficient containers running Unix processes.

Download and Install

Boot2docker is an open-source project and can be downloaded from http://boot2docker.io/.

Instructions for use

Detailed instructions for using boot2docker can be found at https://github.com/boot2docker/boot2docker.

Tag usage

The tag on Stack Overflow is used for questions that relate to both and operating systems. For the benefit of others searching for answers, be sure to include the tag of your operating system in your question.

Related questions also appear on Super User for Windows and OS X.

913 questions
38
votes
3 answers

Accessing host machine as localhost from a Docker container that's also inside a boot2docker vm

Suppose I have a server running on port 8000 on OSX. How can my Docker container access it via localhost:8000? I can't change the hostname too as the app in the container is not in my control. I've read this previous discussion on using --net="host"…
Paul Lam
  • 1,729
  • 1
  • 15
  • 25
36
votes
2 answers

Verify the version of ubuntu running in a Docker container

I have Docker Toolbox installed on windows 8.1 and I am creating an image based on ubuntu:latest (which should be 16.04). I want to make sure that my application is indeed run on 16.04. Here is my Dockerfile: FROM ubuntu:latest MAINTAINER xyz…
Cola
  • 2,097
  • 4
  • 24
  • 30
36
votes
5 answers

Docker mongo image 'Connection refused' from other container

I'm new to docker. I'm trying to create a MongoDB container and a NodeJS container. My file looks: version: '2' services: backend: image: node:5.11-onbuild ports: - "3001:3001" volumes: - .:/code working_dir: "/code" …
Piu130
  • 1,288
  • 3
  • 16
  • 28
36
votes
8 answers

Using ssh-agent with docker on macOS

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…
Paul Odeon
  • 4,407
  • 1
  • 37
  • 37
36
votes
3 answers

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

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…
anaid
  • 921
  • 3
  • 11
  • 13
35
votes
5 answers

How do I mount a Docker volume while using a Windows host?

Mounting a Docker volume while being under a Windows host, has been a huge pain for me, and I could not get it to work. Currently I got the following simple Dockerfile: FROM php:5-apache RUN apt-get update When I build an image from it, and start a…
Philipp Schaffrath
  • 353
  • 1
  • 3
  • 6
35
votes
6 answers

How do I SSH into the boot2docker host vm that the Vagrant 1.6 Docker Provider sets up?

I'm on OSX and I'd like to be able to SSH into the host vm in order to: Get access to a native docker environment. This facilitates understanding and debugging port forwarding issues. Vagrant rsync seems to leave a lot of unused synced directories…
Motin
  • 4,853
  • 4
  • 44
  • 51
34
votes
4 answers

Docker complains about invalid certificate after update to v1.7.0

After updating to Docker v1.7.0 (and also boot2docker), I'm getting the following error when running docker ps: x509: certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.103 Is this a known issue with this version, and what can I do to…
nwinkler
  • 52,665
  • 21
  • 154
  • 168
34
votes
10 answers

How to fix "error in run: Failed to get machine "boot2docker-vm": machine does not exist"?

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…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
34
votes
6 answers

Change boot2docker memory assignment

I've been playing around with docker on a mac so I need to install boot2docker to make it work. I have a pretty powerful machine and a very resource hungry app so I want to up the available memory from the default which is 1GB to something like…
mjsilva
  • 1,327
  • 3
  • 13
  • 21
31
votes
5 answers

What's the best way to share files from Windows to Boot2docker VM?

I have make my code ready on Windows, but I find it's not easy to share to boot2docker. I also find that boot2docker can't persistent my changes. For example, I create a folder, /temp, after I restart boot2docker. This folder disappears, and it's…
yuyue007
  • 1,219
  • 3
  • 14
  • 25
31
votes
1 answer

Inserting a conditional RUN statement inside a dockerfile

I am trying to write a docker file which will run a RUN command to search for a word in a package.json file and act upon it: this is my simple dockerfile: FROM ubuntu:14.04 COPY package.json package.json RUN if grep -q "grunt" package.json; then…
lobengula3rd
  • 1,821
  • 4
  • 26
  • 39
30
votes
10 answers

How to transfer files between local machine and minikube?

I am using OS Ubuntu 16.0.4 and i installed minikube on it. I need to copy some files to minikube, so how can i do that? I tried next command but it asked me on password and i don't know it scp /media/myuser/sourceFolder…
mibrahim.iti
  • 1,928
  • 5
  • 22
  • 50
29
votes
2 answers

How to change "default" docker-machine's dns settings

I know how to create a new docker-machine with dns settings docker-machine create -d virtualbox --engine-opt dns=8.8.8.8 my_machine But there is already a "default" virtualmachine so is there a way to change its dns? I read online ways to do this…
kane
  • 5,465
  • 6
  • 44
  • 72
29
votes
5 answers

/var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

I am very new to the docker when try to run docker info it gives me following error. $ docker info FATA[0000] Get http:///var/run/docker.sock/v1.17/info: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a…
NehaG
  • 864
  • 1
  • 7
  • 15
1 2
3
60 61