Tag: linux

Vagrant, shared folder: take advantage of inotify over NFS

Our Symfony2 webapp uses the Assetic watcher in development mode to re-compile assets on the go. The webapp runs in a Docker container which runs in a Vagrant VM (Ubuntu 12.04 Precise). The host is OSX 10.9 Mavericks and it shares the code folder with the VM through a NFS (v3) share and the code […]

Automatically Start Services in Docker Container

I’m doing some initial tests with docker. At moment i have my images and I can put some containers running, with: docker ps I do docker attach container_id and start apache2 service. Then from the main console I commit the container to the image. After exiting the container, if I try to start the container […]

Refresh net.core.somaxcomm (or any sysctl property) for docker containers

I am trying to change net.core.somaxconn for docker container to be able to have larger queue of requests for my web application. On OS, outside docker, I first modify the property successfully: $ cat /proc/sys/net/core/somaxconn 128 $ sudo sysctl -w net.core.somaxconn=1024 net.core.somaxconn = 1024 $ cat /proc/sys/net/core/somaxconn 1024 But then I don’t know how to […]

command line arguments to docker run

i’m trying to slowly build up a docker image for our needs. What I want to do, is run my base image that has mono, and then have mono run an executable in the background. from the normal command line, without trying to run it in a container, it would look like: /usr/local/bin/mono /home/crystal/Downloads/BackgroundProcesser.exe & […]

Docker and connections between containers

I’m trying create connections between docker‘s containers. One container with php5-fpm and second with nginx. Config for php5-fpm default, just few changes: listen = 9000 listen.allowed_clients = and nginx (/etc/nginx/sites-available/default): server { listen 80 default_server; #listen [::]:80 default_server ipv6only=on; root /var/www/testing; index index.php # Make site accessible from http://localhost/ server_name localhost; location / { try_files […]

Transition Virtual Hosts to Docker Containers

I currently run a Red Hat Linux server with Plesk to host a hundred or so domains. For multiple reasons I’d like to transition away from Plesk and to Docker containers with each virtual host as one or more containers. I’m unclear from what I’ve read so far what would be the best approach to […]

nginx/apache redirection for output port on docker container on vps

I’m a linux noob in admin of docker container using apache or nginx on VPS. I use an OVH classic Vps (4go ram, 25Go SSD) with already installed image of ubuntu 15.04 + docker. Install of docker container is really easy, and in my case i install without problem the image sharelatex. docker run -d […]

Are Docker links deprecated?

When reading about linking containers together they now call it legacy links e.g. here. This article claims links got deprecated in Docker 1.9, but the release notes doesn’t mention this and the list of deprecated features doesn’t mention it either. Question Why does Docker now call links for legacy links? And should I stop use […]

Unable to start Docker Service in Ubuntu 16.04

I’ve been trying to use Docker (1.10) on Ubuntu 16.04 but installation fails because Docker Service doesn’t start. I’ve already tried to install docker by docker.io, docker-engine apt packages and curl -sSL https://get.docker.com/ | sh but it doesn’t work. My Host info is: Linux Xenial 4.5.3-040503-generic #201605041831 SMP Wed May 4 22:33:50 UTC 2016 x86_64 […]

Why do I have to use bash -l -c inside my container?

I’ve created a docker container using the following Dockerfile (truncated): FROM ubuntu:12.04 # curl enables downloading of other things RUN apt-get install curl -y # download and install rvm… RUN \curl -L https://get.rvm.io | bash -s stable # … so that we can install ruby RUN /bin/bash -l -c “rvm requirements” And so on. This […]

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