Docker is an application to create containers for applications.

learn more… | top users | synonyms

0
votes
1answer
21 views

Starting Services without Systemd?

Is it possible to start services on and post startup in CentOS/Fedora distributions without using systemd (systemctl)? If yes, how? Systemd does not work in non-privileged docker containers; ...
0
votes
0answers
15 views

Error in Installing eclipse

I am running sudo apt-get install eclipse-platform command inside Docker Then ran eclipse I get the following error find: `//.eclipse': No such file or directory find: `//.eclipse': No such file ...
0
votes
1answer
65 views

How can i kill docker containers

I have seen many times i am not able to stop conatiner docker stop hashid Error response from daemon: Cannot stop container 1fdfd212ebb7: no such process FATA[0000] Error: failed to stop one or more ...
0
votes
0answers
29 views

How to use stdout/stderr from multiple program

I'm working with Docker-containers. An important part of Docker is to log error, etc., to stdout/stderr. For example, I want to run the following program by using this command: nginx -g "daemon ...
1
vote
1answer
21 views

How to run specific architecture (32/64) of Python in Centos6 when both are installed?

I have a Centos 6.6 Docker image being used for an automated build. It has the default x64 Python 2.6.6 installed. I need to run some things in a 32-bit Python environment. I snagged the ...
0
votes
0answers
10 views

What's wrong with the mapping?

I am running two docker containers one is for hadoop basic services and other is for flume. Services are running successfully. I linked two containers env variables are automatically set by docker ...
1
vote
0answers
58 views

Does jps lie? If not, what else is this?

I am running dockerized hadoop cdh 4.6.0 with supervisor . I have opened the docker container and tried the following two commands. Got confused a lot. jps 103 -- process information unavailable ...
0
votes
0answers
88 views

No manual entry for man

I'm working in a Centos 6.6 Docker image. I thought I installed everything to get access to man pages, but apparently not... $ yum install -y man man-pages man-pages-overrides [...] Complete! $ ...
0
votes
0answers
29 views

Authenticating a virtual machine against a git server

I have a CentOS 7 VM hosted on a Scientific Linux machine (Both branches are Red Hat). I'm using docker as the SW to emulate CentOS over SL. Communication between both is done through a bridge (a ...
0
votes
0answers
35 views

Docker in Crouton - VFS consuming astronomical amounts of space

I'm attempting to help out a roommate who has installed Kubuntu on his Chromebook using Crouton (it's basically just a fancy chroot run within ChromeOS). I helped him get the Docker daemon running, ...
1
vote
0answers
27 views

Mounting docker volumes to conatiners

I have seen that once i have ran my container then its not possible to attach any volume to it. I was thinking of creating a container which has suppose 2 volumes mounted from host Container A -v ...
1
vote
1answer
105 views

Docker container not able to ping host

I am following this tutorial https://docs.docker.com/articles/networking/#between-containers I have used following commands $ sudo brctl addbr bridge0 $ sudo ip addr add 192.168.0.160/24 dev ...
1
vote
0answers
34 views

Interface doesn't come up in docker run

I'm starting a docker container with my own network configuration: [root@localhost ~]# docker run --net=none --lxc-conf="lxc.network.type=veth" --lxc-conf="lxc.network.ipv4=10.0.0.100/24" ...
1
vote
0answers
34 views

openssh-server doesn't start in Docker container

I am having a weird problem. I am not able to ssh to docker container having ip address 172.17.0.61. I am getting following error: $ ssh 172.17.0.61 ssh: connect to host 172.17.0.61 port 22: ...
2
votes
0answers
81 views

Convert sysvinit/upstart init scripts to runit

I am trying to migrate a currently VM-based infrastructure to a Docker-based one, using docker-baseimage, which uses runit/runsv to start and supervise system services. Now while it is apparently very ...
1
vote
0answers
43 views

How to change keyboard layout for skype from docker?

I deployed skype according to this document. However, i do not understand how to add keyboard layout and map.
0
votes
0answers
30 views

run -i vs run -it?

I am using boot2docker on windows. I tried the following commands docker run -i centos /bin/bash docker run -it centos /bin/bash Both provides same kind of execution. I read -i is interactive ...
0
votes
1answer
97 views

tar command not found on rhel6

I am trying to download a file in rhel6 and use tar to uncompress it. I am running this on docker. I get a wierd error saying : /bin/sh: tar: command not found 2014/12/22 19:32:21 The command ...
0
votes
0answers
181 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
142 views

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

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
142 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
36 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
50 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
51 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
282 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
200 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 ...
2
votes
2answers
426 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
262 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
296 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 ...
6
votes
4answers
3k 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
366 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
237 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 ...
5
votes
1answer
370 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 | ...
4
votes
1answer
698 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
106 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 ...
3
votes
1answer
411 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
525 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
426 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 ...
3
votes
1answer
1k 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
538 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
4k 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 ...
4
votes
1answer
406 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 ...
6
votes
2answers
916 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
632 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 ...
6
votes
1answer
1k 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
58 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 ...
9
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 ...
6
votes
2answers
2k 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 ...