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
11
votes
2 answers

What does the DOCKER_TLS_VERIFY and DOCKER_CERT_PATH variable do?

I am new to Docker, using boot2docker on Windows 7. While I was trying to configure Docker build through spotify maven plugin, I was asked to set below env variables : DOCKER_HOST DOCKER_CERT_PATH DOCKER_TLS_VERIFY Configuration was successful but…
Aniketh
  • 1,411
  • 3
  • 12
  • 15
11
votes
2 answers

How can i remove layers from my docker image?

I have build a docker image by making incremental commits. This has led to the creation of a lot of layers in my docker image and subsequently the size of the image has gone very large. Is there a way to remove the layers and as a result reduce the…
Aaquib Khwaja
  • 544
  • 3
  • 7
  • 14
11
votes
3 answers

Can Docker help build executable that work in different platform

I am new to docker and so my question could be very naive/stupid. The application that we use presently need to be compiled in different platform to make it work in desired platform i.e Linux and Window mainly. So we need to compile source…
pgh
  • 213
  • 3
  • 11
11
votes
3 answers

Store `docker run` command output in BASH variable

I'm having an issue storing the output of docker run -it -d -p 43211:3000 --name appname -h hostname -v $PWD/local_dir:/root/remote_dir repo/imagename in a BASH varibale. I tried `backticks`, I also tried running it like the official docs say…
Adrian Oprea
  • 2,360
  • 3
  • 21
  • 23
11
votes
2 answers

How to ignore certificate errors in Boot2Docker on windows

I have boot2docker 1.4.1 running on windows via virtualbox. I am behind a proxy that MITMs https certificates. I configured proxy by adding the following lines in /var/lib/boot2docker/profile: export HTTP_PROXY=:80 export…
RaGe
  • 22,696
  • 11
  • 72
  • 104
11
votes
2 answers

Web development transition from MAMP to Docker

I am new to Docker and I am having a hard time applying its core technology to my present web development. Using MAMP, you just need to download the app, put your PHP/HTML files on /htdocs, start servers, then go to http://localhost:8888/ to see…
xanderlopez
  • 617
  • 2
  • 8
  • 14
11
votes
1 answer

How can I mount a user's existing .ssh directory into a Docker container?

I'm using boot2docker on Windows 7. VirtualBox is mounting my Windows ~/.ssh directory from Windows (c:\Users\Me\.ssh) inside the boot2docker VM (/c/Users/Me/.ssh). My Dockerfile is configuring an image to be used as a development environment. It…
hourback
  • 1,150
  • 4
  • 12
  • 27
11
votes
1 answer

Sharing code directory from host with boot2docker does not call inotify on guest

I am trying to setup a dev environment with boot2docker/Virtualbox. Sharing a folder on the host with the docker container works, but since it is shared through a Virtualbox shared folder inotify does not trigger inside the container (and the code…
Andreas Arnold
  • 535
  • 5
  • 11
11
votes
7 answers

Docker run connection timeout

While running sudo docker pull centos it gives connection time out, While it is running behind proxy where the proxy has been set http_proxy & https_proxy. What is the reason apart from proxy,though it seems proxy issue.I checked LINK but in…
Anil
  • 1,470
  • 5
  • 24
  • 35
11
votes
2 answers

Forward Ports from boot2docker using the Vagrant Docker provider

I'm trying to utilize Vagrant 1.6's Docker provider and I seem to have run into a snag. I can successfully bring up the Docker container and guest OS, but then I can't access the service I've brought up within the container from the host OS. Here's…
Todd
  • 922
  • 7
  • 19
10
votes
2 answers

"rsync" was not detected as installed in your guest machine

I'm trying to setup Vagrant with docker as a provider but when running vagrant up --provider=docker --debug I get this error: "rsync" was not detected as installed in your guest machine. This is required for rsync synced folders to work. In…
Wissem
  • 1,705
  • 4
  • 16
  • 22
10
votes
1 answer

Cannot connect to redis running as container with boot2docker

On my MBP, with latest boot2docker installed, I have the following Dockerfile: FROM redis:3.0.3 CMD redis-server --bind 0.0.0.0 I run the following: docker build . docker run --rm ba09b207db42 # where ba09b207db42 is the container id returned by…
WispyCloud
  • 4,140
  • 1
  • 28
  • 31
10
votes
5 answers

How to mount a directory in the docker container to the host?

It's quite easy to mount a host directory in the docker container. But I need the other way around. I use a docker container as a development environment for developing WordPress plugins. This docker container contains everything needed to run…
Kai Hofstetter
  • 119
  • 1
  • 5
10
votes
2 answers

Copy a file from container to host during build process

How do I copy files from a docker container to the host machine during docker build command? As a part of building my docker image for my app, I'm running some tests inside it, and I would like to copy the output of the test run into the host…
govin
  • 6,445
  • 5
  • 43
  • 56
10
votes
1 answer

How to map docker ports using vagrant 1.6 and the docker provider

I'm currently trying to map my docker container ports from the container to the host (boot2docker). The end goal is to map those ports to my physical machine, but one step at a time. My Vagrantfile currently looks like: Vagrant.configure("2") do…
Dipesh
  • 1,263
  • 1
  • 11
  • 12