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

Docker add warfile to official Tomcat image

I pulled official Docker image for Tomcat by running this command. docker run -it --rm tomcat:8.0 By using this as base image I need to build new image that contains my war file in the tomcat webapps folder. I created Dockerfile like this. From…
user2451997
  • 561
  • 3
  • 8
  • 16
27
votes
3 answers

How to copy data from docker volume to host?

I have created a docker volume "hello" and it contains some data . How can I copy the data to host ? First : kerydeMacBook-Pro:~ hu$ docker volume create --name hello hello checking : kerydeMacBook-Pro:~ hu$ docker volume ls DRIVER …
Kery Hu
  • 5,626
  • 11
  • 34
  • 51
26
votes
5 answers

Docker: go get from a private GitHub repo

I'm trying to run a container that will expose a golang service from a package that I have on a private GitHub repo. Since I am working with GCE, my starter image is google/debian:wheezy. After installing all the required dependancies and tools, I…
orcaman
  • 6,263
  • 8
  • 54
  • 69
26
votes
3 answers

Docker build: read-only file system

I'm using a Dockerfile to build my image and I have a command in there that says: RUN sysctl -w net.ipv4.route.flush=1 but it fails to build the image with the following error: Step 20 : RUN sysctl -w net.ipv4.route.flush=1 ---> Running in…
Romeo Mihalcea
  • 9,714
  • 12
  • 50
  • 102
25
votes
2 answers

Giving a docker container a routable ip address

I am running this on ubuntu 14.04 and have set docker0 to a static ip which is then routed to from the public ip through the firewall. I am trying to set up my backend API to run in a docker container and am confused by a couple things. 1.) How…
robert
  • 819
  • 1
  • 10
  • 24
24
votes
5 answers

boot2docker startup script to mount local shared folder with host

I'm running boot2docker 1.3 on Win7. I want to connect a shared folder. In the VirtualBox Manager under the image properties->shared folders I've added the folder I've want and named it "c/shared". The "auto-mount" and "make permanent" boxes are…
phazei
  • 5,323
  • 5
  • 42
  • 46
23
votes
3 answers

How can I debug my docker container with phpStorm

Under the following IP my Container run successful in my Webbrowser http://192.168.99.100:32775 I have also create a volume to share files between my container and my filesystem docker run --name lampf -d -p 32775:80 -v…
codinglimo
  • 707
  • 2
  • 6
  • 17
23
votes
4 answers

OSX boot2docker hangs on "Waiting for VM and Docker daemon to start …"

I've installed boot2docker on OSX 10.8.5 and it seems that the installation went fine, but when I try to launch boot2docker I get the following, which hangs indefinitely: $ /usr/local/bin/boot2docker up Waiting for VM and Docker daemon to…
AJB
  • 7,389
  • 14
  • 57
  • 88
22
votes
6 answers

How copy/paste text on BootToDocker console

I use Docker on Windows 8.1 and I would like know how I can copy/paste a simple text inside the Boot2Docker console please, I have try ctrl+v and right-click but don't work. Thanks.
Axel Briche
  • 661
  • 1
  • 8
  • 14
20
votes
1 answer

How to assign a name to running container in docker?

I have created container from particular image using command: $ docker run -d -P selenium/hub running container status is below: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS …
Pratik Patel
  • 2,209
  • 3
  • 23
  • 30
20
votes
3 answers

Move boot2docker and .docker folder in other drive

I'm new in docker. I have installed docker in windows in the D drive but the Boot2docker VM is in the user folder in the C drive. I dont have enough space in the C and the boot2docker is growing when i pull softwares from the docker hub. So I want…
berzeker
  • 203
  • 2
  • 5
19
votes
3 answers

Cannot get docker-machine to work with virtualbox when using Cisco VPN AnyConnect

When I use Cisco VPN Anyconnect to join to my corporate network, I cannot get docker-machine to connect to my virtualbox VM. It has something to do with Cisco Anyconnect taking over all 192.168.. routes. I also tried using a totally different cidr…
Dhawal
  • 1,240
  • 2
  • 12
  • 20
19
votes
3 answers

boot2docker on windows missing apt-get / package manager

I'm in boot2docker. I'm not entirely sure I understand it completely, but it seems to be needed for a project I'm on. I've ssh'd in, and I tried to do a make on our project, but I got make: not found Then I tried a: apt-get install make And…
phazei
  • 5,323
  • 5
  • 42
  • 46
18
votes
3 answers

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

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…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
18
votes
1 answer

Specifying superuser PostgreSQL password for a Docker Container

When running a PostgreSQL database in a Docker container, the documentation for the official PostgreSQL Docker Image specifies that the administrator password should be set in an environmental variable like: docker run --name some-postgres -e…
Joseph Idziorek
  • 4,853
  • 6
  • 23
  • 37