Docker is an application to create containers for applications.

learn more… | top users | synonyms

0
votes
0answers
23 views

Issue running Python script via cron inside Docker

I have an official Ubuntu 14.04.1 container running via Docker. cron is working fine, I added * * * * * /bin/echo "working" >> /test to my crontab using crontab -e and then I started cron with ...
1
vote
1answer
28 views

/sys: cpio: chown failed - Read-only file system (Building Passenger RPM using Docker)

While I'm trying to build rpm using Docker for Phusion Passenger 4.0.53 (https://github.com/phusion/passenger_rpm_automation), I get the following error. Any help is most appreciated. $ ./build -p ...
0
votes
0answers
33 views

Mount proc filesystem in a docker container

i want to install gitlab vcs in a docker container with ubuntu base image on it. But when i run gitlab-ctl recofigure, it can't write to a file on proc fs. How to mount or run docker to provide rw ...
0
votes
0answers
28 views

How do you connect app and DB servers from separate containers?

With Docker, how can I make the DB in one container accessible by the app server in another?
0
votes
1answer
43 views

Could I install both Docker and LXC on the same linux box?

Docker and LXC both has it pros and cons. For instance, LXC could run properly with traditional init service or process but docker couldn't (at this moment).
0
votes
1answer
33 views

All images and containers disappeared after host kernel downgrade

On the host machine was installed kernel 3.16. After installation the kernel 3.14 via deb package I lost all docker images and containers. Output of commands docker images and docker ps -a are empty. ...
2
votes
0answers
220 views

Docker like solutions for OpenVZ containers

We have been providing OpenVZ containers(VEs) for developers working on some projects - this was done from a purely economical perspective. I have been asked to setup a Docker-like system within the ...
2
votes
2answers
134 views

Docker Container Volumes Synced Locally

I am trying to run a local Docker Registry with a synchronized storage with my Dropbox so I can have access to built VMs without having to rebuild the images if I move to a different work station. I ...
1
vote
2answers
216 views

Why does Docker need root privileges?

I am learning Docker, and I quite like it. However, I don't understand, why does docker need root privileges for making containers, reading logs, and so on. I have read some articles like this one ...
2
votes
3answers
124 views

Display hostname in static HTML page on uhttpd

I have a docker container running uhttpd and serving a static HTML page. How can I dynamically insert the hostname of the container into the static HTML page? I want to keep the container as ...
1
vote
3answers
192 views

shell script to run on boot on Mac OS X does not run all commands

On OS X, I am trying to use lingon to run a shell script upon booting. I have a file ~/desktop/_admin/boot/bootdocker.sh: #!/bin/bash boot2docker up export DOCKER_HOST=tcp://192.177.59.103:2475 My ...
1
vote
2answers
2k views

Docker + Bridges + DHCP

I have a lot of docker containers that I need addressable on the the same LAN as their hosts. Up until now, I have been achieving this by using setting up a bridge and manually assigning them IPs, and ...
2
votes
2answers
187 views

How to use/test pivot_root?

I want to test the pivot_root command which moves the root file system of the current process to the directory put_old and makes new_root the new root file system. But I always get the following ...
0
votes
0answers
213 views

unable to run bash as new user on an ubuntu docker container

i have a docker container and i am trying to enable sshd and log in with a new user rag. it appears that as user 'rag' i am not able to execute /bin/bash. i am not sure why. i cannot figure out ...
3
votes
1answer
236 views

How can I remove all my docker images?

Sometimes I just want to clear everything out of docker, and start with a clean slate. Is there a systematic way to just remove all my Docker containers & images? Containers $ docker ps -a | ...
2
votes
1answer
393 views

How can I remove a stubborn docker image?

I was trying to remove a Docker image as follows and could not figure out how to do this. List of docker images $ docker images REPOSITORY TAG IMAGE ID CREATED ...
5
votes
1answer
82 views

Why does the mountpoint of my root filesystem change?

When I look at the output of lsblk it will usually show: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 298.1G 0 disk ├─sda1 8:1 0 1023M 0 part /boot └─sda2 8:2 0 ...
2
votes
1answer
349 views

Docker error creating bridge

after installing Docker on a Ubuntu 14.04 minimal system with these commands, apt-get update apt-get install docker.io ln -sf /usr/bin/docker.io /usr/local/bin/docker sed -i '$acomplete -F _docker ...
0
votes
0answers
422 views

Running MySQL in a Docker container

So my ultimate end goal is to run a MySQL Docker container (say tutum/mysql from the public registry) and then link a Gitlab Docker container (say sameersbn/gitlab) to it, where both containers use ...
2
votes
0answers
378 views

Inherit environment variables in systemd Docker container

I have a Docker container running systemd. I want to pass environment variables to applications under it. When I start systemd from within Docker (/sbin/init as command line), Docker exposes ...
2
votes
1answer
586 views

Forward SIGTERM to child in Bash

I have a Bash script, which looks similar to this: #!/bin/bash echo "Doing some initial work...."; /bin/start/main/server --nodaemon Now if the bash shell running the script receives a SIGTERM ...
1
vote
1answer
458 views

Docker - Force to Use AUFS Instead of BTRFS

I am having significant problems using Docker on my BTRFS filesystem, and I suspect that is due to a lack of stability with the BTRFS driver. I would rather figure out how to switch the fs driver than ...
0
votes
2answers
2k views

locale-gen command in centos6

In my bare centos6.5 system, which is a docker container, en_US.utf-8 locale is missing: bash-4.1# locale -a C POSIX Normally in Ubuntu there is command locale-gen to do this: # locale-gen ...
3
votes
1answer
247 views

Is it possible to run a 10.04 or 12.04 or earlier LTS containerized under LXC or Docker on Trusty?

Is it possible to have a vanilla installation of Ubuntu 14.04 (Trusty) and run inside it containerized older Ubuntu versions that originally came with older kernels? For example for 12.04 I'd assume ...
4
votes
2answers
682 views

How can I substitute lsof inside a Docker (native, not LXC-based)

I'm somewhat baffled that inside a Docker container lsof -i doesn't yield any output. Example (all commands/output from inside the container): [1] root@ec016481cf5f:/# lsof -i [1] ...
0
votes
0answers
252 views

What problems to expect when running Docker with libcontainer and lxc on the same host?

Simple question. Can I use the lxc userland tools and docker with its new "native" libcontainer in parallel on the same host? I can see how for some scenarios I could benefit from the docker way of ...
4
votes
1answer
520 views

X and xdotool in LXC instead of KVM

So far I am using various xautomation/xdotool scripts in a KVM virtual machine (linux guest) in order to let them do their work and let me work uninterruptedly. I am using a VirtIO disk, but still the ...
4
votes
1answer
991 views

Docker: How to get image size?

We can search for available image files on the docker website like this: https://index.docker.io/search?q=ubuntu How can I tell what the download size(s) will be prior to pulling? docker.io pull ...
2
votes
1answer
55 views

Running a command without ./

I am trying to understand something that might be very simple for a lot of you but is quite puzzling from me as a daily Windows user. I am following the docker installation on Mac OS X. One of the ...
7
votes
1answer
1k views

When and why should I use apt-get update?

General question: Could some explain what the command apt-get update does and when I really should use it? Remarks Please give a detailed answer. Not just a copy of the man page, unless your ...
5
votes
2answers
1k views

AppArmor profiles in Docker/LXC

I have a Docker container (LXC) which runs MySQL. Since the idea behind Docker is generally "one running process per container," if I define AppArmor profiles targeting the MySQL binary, will they be ...
7
votes
2answers
3k views

Application updates inside of Docker containers?

Typically on a server, automatic updates of security-related patches are configured. Therefore, if I'm running MySQL 5.5 and a new security patch comes out, Ubuntu Server will apply the upgrade and ...
10
votes
1answer
2k views

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
3
votes
1answer
1k views

Pull a file from a Docker container?

I can see that it's possible to insert a file into a Docker container via insert: docker insert IMAGE URL PATH Is there a way to fetch the contents of a file in a Docker container and save them ...
2
votes
1answer
1k views

Creating a Vagrant box with Docker installed

I'm trying create a nice playground for Docker in Vagrant based on Vagrant's precise64 box. (Code is available at GitHub: rfkrocktk/docker-vagrant-playground) Here's my Puppet provisioning ...
0
votes
2answers
902 views

WordPress installation with Docker

I have to migrate my WordPress installation to my own server in order to get SSL working properly. (It was originally on GoDaddy shared hosting, which doesn't allow for external SSL cert ...
2
votes
1answer
481 views

How to automatically launch a lxc container on ssh connection?

I'm attempting to setup a system that automatically creates a new sandbox on a ssh login to use as a temporary jump box into my server. So to do this I was wonder how to setup lxc to spin up a new ...