Tag: boot2docker

Vagrant start docker container after halt

I am using Vagrant boot2docker to provision docker containers. This containers are created and started during the provision process. After halting or restarting the VM and then calling vagrant up the containers are not restarted again. Also vagrant provision does not work a second time because the containers all have a fixed name to the […]

How do I configure boot2docker to start my containers on boot?

I’m fairly new to boot2docker and have some problem installing a process manager in it. The setup I’m going for is to use vagrant to create my local boot2docker development machine and configure the containers inside that VM. The Vagrant box I’m using is this one: yungsang/boot2docker. I have setup the boot2docker VM to create […]

Symfony2 app slow response on MacOS & Boot2Docker

I have a slightly big Symfony app, which I was running on Docker by adding all of the files in the Dockerfile, and run everything from within the container. I was doing this only for testing purposes, but now I wanted to switch the dev environment to Docker as well, and tried using -v parameter […]

Import a heroku postgres database dump into a docker database container with boot2docker

I’m running boot2docker on OSX 10.10. I have a database container set up so my databases don’t get reset every time I start/stop a container. I would like to import a dump of a postgres database from heroku into my docker database. Is this possible to do?

How to connect docker container via ssh?

I use the tutorial in this: https://docs.docker.com/examples/running_ssh_service/ and I have finish above step, and I use the docker ps to find the port ,and assume my port is 32769 when I input this command: ssh root@ -p 32769 it just show me : ssh root@localhost -p 32769 ssh: connect to host localhost port 32769: Connection […]

Cannot delete files on docker host

I’m using the following shell script to extract my databases in the entrypoint and startup the container. #!/bin/bash if [ ! -d “/var/lib/mysql/assetmanager” ]; then tar -zxvf mysql.tar.gz fi exec /usr/bin/mysqld_safe On startup I mount a local directory to the /var/lib/mysql directory with the -v parameter and extract then the files with the above script. […]

How to deploy web service on Docker container

This is my Dockerfile: #Build java web app container image FROM ubuntu MAINTAINER wangyao #Make java and tomcat install directory RUN mkdir /usr/local/java RUN mkdir /usr/local/tomcat #Copy jre and tomcat into image ADD jdk1.8.0_45.jdk /usr/local/java/ ADD apache-tomcat-7.0.62 /usr/local/tomcat/ ENV JAVA_HOME=/usr/local/java/Contents/Home CMD cd /usr/local/tomcat;./bin/catalina.sh run #Expose http port EXPOSE 8080 Then i built it and try […]

Supervisor is not starting up

I am following cloudera cdh4 installation guide. My base file FROM ubuntu:precise RUN apt-get update -y #RUN apt-get install -y curl RUN apt-get install -y software-properties-common python-software-properties RUN add-apt-repository ppa:webupd8team/java RUN apt-get update -y RUN echo debconf shared/accepted-oracle-license-v1-1 select true | \ debconf-set-selections RUN apt-get install -y oracle-java7-installer #Checking java version RUN java -version My […]

Updating boot2docker to 1.4.0 not taking

I’m trying to update docker/boot2docker using boot2docker download command but upon starting it, it is still running 1.3.2 client (docker –version) bash-3.2$ boot2docker download Latest release for boot2docker/boot2docker is v1.4.0 Downloading boot2docker ISO image… Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.4.0/boot2docker.iso Also, from the docker github OS X installer page, 1.3.2 is the only download option. Thanks!

Docker save file

I have a docker image running right now, and access it by boot2docker. I use Python on this, with all the libraries installed. My problem is that I can’t save any file or images on Docker. I just execute a little script that save an image in jpg format, but nothing is saved. I give […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.