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
9
votes
5 answers

Xdebug can't connect back to Docker host

I've just setup Docker on my machine & have an Nginx/PHP7 (FPM)/MySQL setup all working fine, but having installed Xdebug on the PHP container I can't get it to connect back to PHPStorm on my host machine. Here's my PHP Xdebug…
TobyG
  • 1,692
  • 3
  • 21
  • 36
9
votes
2 answers

Performing a npm install via Docker on a windows host

I'm trying to create a docker dev tools container for a devlopement environment on a windows host via docker toolbox but I have some trouble running the npm install command. It worked fine on a linux host but on the windows host I got the following…
jiboulex
  • 2,963
  • 2
  • 18
  • 28
9
votes
3 answers

ELF Header or installation issue with bcrypt in Docker container

Kind of a longshot, but has anyone had any problems using bcrypt in a linux container (specifically docker) and know of an automated workaround? I have the same issue as these two: Invalid ELF header with node bcrypt on AWSBox bcrypt invalid elf…
Jimmy Gong
  • 1,825
  • 5
  • 20
  • 35
9
votes
2 answers

docker exec bash in windows - keyboard arrow keys don't work

I've always just used boot2docker ssh and in that I'd run docker exec -it container bash and it would work fine. Now I'm using the new windows client and while docker exec -it container bash will get me to a bash prompt, from there if I type,…
phazei
  • 5,323
  • 5
  • 42
  • 46
9
votes
3 answers

mysql in docker container can't run through a mounted volume on os x

On OS X. I am trying to run mysql in a docker container through boot2docker, by mounting the volume /var/lib/mysql on the host, so that I can have persistant mysql data. I plan to use a data only container in future, but right now I was trying to do…
Yash
  • 5,225
  • 4
  • 32
  • 65
9
votes
0 answers

Vagrant and Docker provider: Container not loaded, Boot2Docker VM not available with SSH

I'm trying to deploy a simple httpd server with docker and Vagrant to get around the file permission issue with the virtualbox shared folders (I'm using rsync with vagrant, and running Windows as the host) when I run vagrant up, the VM starts (I can…
Ben
  • 966
  • 2
  • 10
  • 24
9
votes
2 answers

Docker for Windows doesn't work

I am trying to setup Docker on Windows 8.1. I was following this guide: https://docs.docker.com/installation/windows/#installation It seems nice and straight forward ... except it's not working for me. The installation passes allright. Then I run…
TondaCZE
  • 2,590
  • 1
  • 19
  • 20
9
votes
1 answer

Why does pushing a Docker image fail with "dial tcp: lookup cdn-registry-1.docker.io on 192.168.1.1:53: read udp 192.168.1.1:53: i/o timeout"?

I'm pushing to a private docker repository on Docker Hub and I keep getting this error: 2726b5968341: Image successfully pushed 2fd0731064ec: Image successfully pushed 49328a658a81: Image successfully pushed 6beafaa9c78d: Image successfully…
threejeez
  • 2,314
  • 6
  • 30
  • 51
9
votes
5 answers

How to check if the restart policy works of Docker

From the Docker document, there is a restart policy parameter could be set. How do I verify the container indeed restarts when the container exits. How to trigger the exit of container manually, and observe if the container restarts? My environment…
Browny Lin
  • 2,427
  • 3
  • 28
  • 32
8
votes
1 answer

docker Error getting IP address: ssh command error exit status 255

I am using the Oracle VM VurtualBox 5.1.18 version Windows 10 version 64bit, and "Docker Quick Start Terminal" I installed the docker terminal and tried to run it. I got this message. So I ran it again and I get this message. so, When I tried…
kimchiman
  • 99
  • 1
  • 2
  • 5
8
votes
4 answers

How to enable the Docker Remote API on Windows

I am trying to use the Docker Remote API on a Windows 10 host machine. I am using Chrome's Postman extension to see if I can get results from the docker remote api's endpoints. Here are the endpoints that I've tried: GET…
jmc
  • 1,649
  • 6
  • 26
  • 47
8
votes
1 answer

Automatically mounting host folders other than c:\Users in Docker images in Windows

I've got a program that needs to automatically install & manage some Docker containers on Windows with minimal user input. It needs to automatically setup Docker to mount arbitrary Windows folders. It needs to do this from a clean install, where the…
std''OrgnlDave
  • 3,912
  • 1
  • 25
  • 34
8
votes
1 answer

Docker Compose mount Windows folder

I am using Docker Toolbox in Windows and am trying to mount a Windows folder in a docker-compose.yml file like this: nginx: image: nginx:latest container_name: test_server ports: - "80:80" volumes: - /sss:/c/data/www:ro …
Nick Doulgeridis
  • 583
  • 1
  • 16
  • 31
8
votes
3 answers

How do I switch between active docker-machines on OSX?

Within MacOS, I have created 2 docker machines, say, dev1 and dev2. In one terminal running $docker-machine active shows dev1 as an active docker-machine and in the other, dev2. Now I want to switch to dev2 in the 1st terminal (without…
alisa
  • 1,336
  • 2
  • 15
  • 21
8
votes
1 answer

Java process in Docker container doesn't exit on end of main()

I have a java jar command, and I'm calling it from inside python using Popen. I'm happy that I'm doing it right, and theres lots of reasons why I'm doing it this way (its not great, but it is what it is). When I run the Java locally, it works fine…
Jmons
  • 1,766
  • 17
  • 28