boot2docker

ELF Header or installation issue with bcrypt in Docker container

最后都变了- 提交于 2019-11-28 03:32:11
问题 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 header when running node app My Dockerfile # Pull base image FROM node:0.12 # Expose port 8080 EXPOSE 8080 # Add current directory into path /data in image ADD . /data # Set working directory to /data WORKDIR /data # Install dependencies from package

docker error: /var/run/docker.sock: no such file or directory

喜欢而已 提交于 2019-11-28 03:25:55
I am new to docker. I have a shell script that loads data into impala and I want a docker file that runs builds an image and run the container. I am on mac, installed boot2docker and have the DOCKER_HOST env set up. bash-3.2$ docker info Containers: 0 Images: 0 Storage Driver: aufs Root Dir: /mnt/sda1/var/lib/docker/aufs Dirs: 0 Execution Driver: native-0.2 Kernel Version: 3.15.3-tinycore64 Debug mode (server): true Debug mode (client): false Fds: 10 Goroutines: 10 EventsListeners: 0 Init Path: /usr/local/bin/docker Sockets: [unix:///var/run/docker.sock tcp://0.0.0.0:2375] I am trying to just

How to install docker-compose on Windows

南楼画角 提交于 2019-11-28 03:24:04
If I type the following commands in boot2docker as shown on the docker website: curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose When I type the following commands to check if the installation was successful, I get: /usr/local/bin/docker-compose: line 1: syntax error: unexpected newline So, how can I install docker-compose on boot2docker ? VonC Update 7th of november 2018: On desktop systems like Docker for Mac and Windows, Docker Compose is included as part of those

Docker/Boot2Docker: Set HTTP/HTTPS proxies for docker on OS X

这一生的挚爱 提交于 2019-11-28 02:52:54
In short : How can I set the HTTP/HTTPS proxies for Docker on Mac OS X? In detail : I run Docker (1.12) on Mac OS X behind a proxy. I followed the installation instructions and installed boot2docker. This is working fine if I pull from my network-internal Docker registry. However, I get the following error when pulling from docker.io: machine:~ me$ docker run ubuntu echo hello world Unable to find image 'ubuntu' locally Pulling repository ubuntu 2014/06/30 13:23:26 Get https://index.docker.io/v1/repositories/ubuntu/images: dial tcp: lookup index.docker.io: no such host Note 1 : DOCKER_HOST ,

Logstash in Docker - config file not found when mounted though a volume

给你一囗甜甜゛ 提交于 2019-11-28 02:05:55
问题 EDIT: It seems to be a boot2docker thing... works fine in an ubuntu vm running docker. I'm trying to fire up logstash in a Docker container but when I mount the config file as a volume, it doesn't seem to find it. Interestingly, if I start up the container with bash, I can see the config file in there and running the same command as what docker would, it works. Docker File FROM ubuntu:14.04 MAINTAINER cvallance RUN apt-get update RUN apt-get -yqq install openjdk-7-jre RUN apt-get -yqq install

Docker toolbox: Is there a way to mount other folders than from “C:\Users” Windows?

℡╲_俬逩灬. 提交于 2019-11-27 22:13:51
问题 I installed Docker toolbox 1.8.3 using VirtualBox 5.0.6 on Windows 7. The default virtual machine created during startup of Docker Quickstart Terminal has one defined shared folder for c:\Users . Is it possible to persistently add other shared folders to this virtual machine e.g. mounting a d:\ drive on the host? 回答1: The boot2docker README mentions Alternatively, Boot2Docker includes the VirtualBox Guest Additions built in for the express purpose of using VirtualBox folder sharing. The first

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

那年仲夏 提交于 2019-11-27 19:54:15
问题 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.

Docker error: client and server don't have same version

ぐ巨炮叔叔 提交于 2019-11-27 17:39:30
Since I just updated Docker to 1.1.0 I get: Error response from daemon: client and server don't have same version (client : 1.13, server: 1.12) Do you know how to fix this? I switched back to 1.0.1 and everything works again. It looks like you need to upgrade the VM after installing boot2docker: if you are upgrading from boot2docker 0.12 or later, you can update your existing virtual machine (after upgrading using the installer) using boot2docker stop && boot2docker download && boot2docker up - and you will not lose your existing data. ( https://github.com/boot2docker/osx-installer/releases

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

瘦欲@ 提交于 2019-11-27 17:36:58
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 find this config file either at /etc/default or anywhere else. Inside boot2docker ( boot2docker ssh ) / docker-machine ( docker-machine ssh default ) , open or create the file /var/lib/boot2docker/profile and add the following line: EXTRA_ARGS="--dns 192.168.1.145" Also works for: EXTRA_ARGS="--insecure-registry myinternaldocker" After the change you

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

醉酒当歌 提交于 2019-11-27 17:20:46
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" for a container to access the host machine's network. However, I'm on OSX and Docker runs inside a VM so localhost from the Docker container with --net="host" goes to the VM and not my real machine. Then I tried port forwarding workaround like so: VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port8000,tcp,,8000,,8000"; to no avail. Any