Tag: boot2docker

How to install nano on boot2docker

I’m running the boot2docker VM in windows and need to modify the init scripts within the VM. Currently my only option is VI, and it’s a pain. I’d just like to use nano, but it’s not available. It’s running: docker@boot2docker:/c$ uname -a Linux boot2docker 3.18.5-tinycore64 #1 SMP Sun Feb 1 06:02:30 UTC 2015 x86_64 GNU/Linux […]

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

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.

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

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.

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 /Users/sja/Sites/lamkepf2:/var/www/html –link=lampf_db:db codinglimo/apache_php540_gs_imgmck_pdflib9 Now I install also xDebug successful in my container with the following xdebug.ini zend_extension=”/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so” xdebug.remote_enable=on xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 […]

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

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 […]

What's the best way to share files from Windows to Boot2docker VM

I have make my code ready on Windows, but I find it’s not easy to share to boot2docker. I also find that boot2docker can’t persistent my changes. For example, I create a folder /temp, after I restart boot2docker, this folder disappears, it’s very inconvenient. What is your way when you have some code on windows, […]

What does the DOCKER_HOST variable do?

I’m new to Docker, using Boot2Docker on OSX. After booting it, this message is given: To connect the Docker client to the Docker daemon, please set export DOCKER_HOST=tcp://192.168.59.103:2375 Yet even without it, basic Docker commands (eg, docker run hello-world) work fine. The install instructions aren’t very informative: Note: If you see a message in the […]

Docker Compose vs. Dockerfile – which is better?

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 […]

How to mount host directory in docker container?

I am trying to mount a host directory into the docker container so that any updates done on the host is reflected into the docker containers. I couldn’t succeed after googling and reading the docker volume links. Can somebody point me where I am doing wrong. Here is what I did kishore$ cat Dockerfile FROM […]

How to install docker-compose on Windows

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 ?

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