boot2docker

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

做~自己de王妃 提交于 2019-11-28 16:31:50
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 that's eating up disk space that I'd like to recover. To be clear, this question is NOT about ssh:ing into the docker containers that the Vagrant provider creates, but into the intermediate boot2docker host vm that Vagrant creates. I know that a workaround is to not use the default boot2docker as the host vm (as explained in the answer here ), but

How to use --volume option with Docker Toolbox on Windows?

↘锁芯ラ 提交于 2019-11-28 15:59:21
How can I share a folder between my Windows files and a docker container, by mounting a volume with simple --volume command using Docker Toolbox on? I'm using "Docker Quickstart Terminal" and when I try this: winpty docker run -it --rm --volume /C/Users/myuser:/myuser ubuntu I have this error: Invalid value "C:\\Users\\myuser\\:\\myuser" for flag --volume: bad mount mode specified : \myuser See 'docker run --help'. Following this , I also tried winpty docker run -it --rm --volume "//C/Users/myuser:/myuser" ubuntu and got Invalid value "\\\\C:\\Users\\myuser\\:\\myuser" for flag --volume:

Not enough entropy to support /dev/random in docker containers running in boot2docker

给你一囗甜甜゛ 提交于 2019-11-28 15:58:11
Running out of entropy in virtualized Linux systems seems to be a common problem (e.g. /dev/random Extremely Slow? , Getting linux to buffer /dev/random ). Despite of using a hardware random number generator (HRNG) the use of a an entropy gathering daemon like HAVEGED is often suggested. However an entropy gathering daemon (EGD) cannot be run inside a Docker container, it must be provided by the host. Using an EGD works fine for docker hosts based on linux distributions like Ubuntu, RHEL, etc. Getting such a daemon to work inside boot2docker - which is based on Tiny Core Linux (TCL) - seems to

How to access Docker container's web server from host

落爺英雄遲暮 提交于 2019-11-28 15:41:25
问题 I'm running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi --http :8080 . If I attach to the container I can browse the web site using lynx http://127.0.0.1:8080 so I know the server is working. I ran my container with: $ docker run -itP --expose 8080 uwsgi_app:0.2 It has the following details: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5248ad86596d uwsgi_app:0.2 "bash" 11 minutes ago Up 11 minutes 0.0.0.0:49159->8080/tcp cocky_hypatia

Docker on Windows (Boot2Docker) - certificate signed by unknown authority error

ⅰ亾dé卋堺 提交于 2019-11-28 15:40:12
I am running Docker on Windows (boot2docker + Oracle Virtual Box). In my corporate environment they modify the certificates so that the CAs are the company's self signed CA's. Thus, the chain ends up like this: Company's CA |__ Company's Intermediate CA |__ Docker Certificate When I try to run any command, such as: docker run hello-world I get this error: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority I have found several answers to this problem but always for Linux environments. How can I workaround this problem in Windows

Docker Compose vs. Dockerfile - which is better?

只愿长相守 提交于 2019-11-28 13:08:18
问题 I have been reading up and learning about Docker, and am trying to correctly choose the Django setup to use. So far there is either: Docker Compose or Dockerfile I understand that Dockerfiles are used in Docker Compose , but I am not sure if it is good practice to put everything in one large Dockerfile with multiple FROM commands for the different images? I want to use several different images that include: uwsgi nginx postgres redis rabbitmq celery with cron Please advise on what are best

Boot2Docker on Mac - Accessing Local Files

人盡茶涼 提交于 2019-11-28 09:12:58
I've just set up boot2docker on my Mac. How do I go about mounting a local directory on my Mac so that it's accessible all the way through to a running Docker container? Thanks for your help! As of October 16, 2014, Docker supports mounting directories in the /Users path seamlessly. From the Docker blog : With this release we are addressing the most common issue: sharing directories between your Mac and your containers. Using Docker 1.3 with the corresponding version of boot2docker, host-mounted volumes now work the way you expect them to. ...Note that there are still some limitations: for

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

无人久伴 提交于 2019-11-28 08:44:18
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 container docker build -t phisch:dev . docker run phisch:dev the container starts properly. But when I am trying to mount a volume, docker run -v /c/Users/phisch/dev/htdocs:/var/www phisch:dev the following message will be displayed: C:\Users\phisch\dev>docker run -v /c/Users/phisch/dev/htdocs:/var/www phisch:dev no such file or directory docker:

Docker add warfile to official Tomcat image

China☆狼群 提交于 2019-11-28 05:54:27
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 tomcat8 ADD warfile /usr/local/tomcat When I run this Dockerfile by building image I am not able to see Tomcat front page. Can anybody tell me how to add my warfile to official Tomcat images webapp folder. daniel Reading from the documentation of the repo you would do something like that FROM tomcat MAINTAINER xyz ADD your.war /usr/local/tomcat/webapps/

Docker - how can I copy a file from an image to a host?

别等时光非礼了梦想. 提交于 2019-11-28 03:45:27
My question is related to this question on copying files from containers to hosts; I have a Dockerfile that fetches dependencies, compiles a build artifact from source, and runs an executable. I also want to copy the build artifact (in my case it's a .zip produced by sbt dist in '../target/`, but I think this question also applies to jars, binaries, etc. docker cp works on containers, not images; do I need to start a container just to get a file out of it? In a script, I tried running /bin/bash in interactive mode in the background, copying the file out, and then killing the container, but