Docker is an application to create containers for applications.

learn more… | top users | synonyms

0
votes
0answers
7 views

Docker - expose port to 1 particular host

We currently have a network consisting of 2 servers (mongodb and backend, from here on). All of them run Ubuntu 14.04 Previously we just ran both on the same server but we want to expand. We already ...
1
vote
1answer
23 views

How to build cron docker image properly?

I am trying to build Debian-based image to dockerize cron process, but my cron jobs are never started. Here is my Dockerfile: FROM debian:jessie RUN apt-get update && apt-get install -y ...
1
vote
0answers
16 views

can't save docker image: Error response from daemon: chtimes: invalid argument

i can't save my docker images, when i try to save a container, it fails: Error response from daemon: chtimes ...
2
votes
1answer
15 views

How do I configure Docker containers to have unique IP addresses that are not the default ones?

How do I configure Docker containers to have unique IP addresses that are not the default ones? The Docker containers will run Apache or some web service. These Docker containers will share one host ...
2
votes
0answers
20 views

How do I get Consul to work so I can get Docker Overlay to work?

I am running CentOS 7 with Docker. I am trying to install Consul on the Docker server. Consul is unzipped. The binary file works for showing the version. I ran this: echo $CONSUL_RPC_ADDR This ...
0
votes
0answers
11 views

Can’t build and start docker container with mariadb

Host OS: Ubuntu 16.04 x86_64 Docker OS: Alpine Linux Edge Docker version: 1.11.0, build 4dc5990 MariaDB version: 10.1.13 I try to install MariaDB via Dockerfile and start it on entrypoint ...
0
votes
1answer
14 views

Problem running systemctl in centos7 based container

Error message from docker log command : Failed to get D-Bus connection: Operation not permitted My docker file: `From centos:latest MAINTAINER Ijaz <ihmad@example.com> RUN yum -y update; yum ...
2
votes
0answers
22 views

GPG Key Generation Fails on Alpine Linux Docker Image

I've performed the following test on a docker alpine linux: ole@MKI:~$ docker run --rm -it alpine /bin/ash / # apk add --update duplicity fetch ...
4
votes
1answer
46 views

Docker container with Samba exits without any message

We have a server running CentOS, on which there are several services in Docker containers to separate them from host changes. Last week Friday we ran an update on CentOS, and since then one of our ...
0
votes
0answers
54 views

Linux command “systemctl status” is not working inside a Docker container

The command "systemctl status" is not working. It never has. My container is on CentOS 7. When I issue "systemctl status" I get results "Failed to get D-Bus connection: operation not permitted." Path ...
0
votes
0answers
35 views

How do I get a yum repo to work in a Docker container?

What do I do about two Docker containers on separate VMs that have the same IP address on my network? I have two CentOS 7.x servers. Both have exactly one Docker container. When I use ifconfig, the ...
0
votes
0answers
14 views

Testing OpenSSH Logging

I'm attempting to turn on logging inside OpenSSH running in an Alpine Docker container. I made sure to install rsyslog and start the daemon with /usr/sbin/rsyslogd. My sshd logging settings are as ...
1
vote
1answer
26 views

The most secure Alpine SSHD Configuration

I'm experimenting with Docker's alpine image and OpenSSH. The sshd_config file that ships with alpine has everything commented out by default. I only uncomment Port 22. I assume this is the most ...
2
votes
1answer
53 views

Don't allow docker internet access

I'm looking for a simple way to limit my docker containers so they only have local access and not internet access. I've tried using IPtables to do this and the following works: iptables -I FORWARD ...
0
votes
0answers
14 views

Is it possible to setup a bridge configuration where only the host can access a VM, but not the other way around and no VM->VM?

I have a KVM hypervisor set up with several VMs. A docker instance runs in each of them (for security purposes the containers shouldn't run on bare metal next to each other). Is it possible to ...
1
vote
1answer
30 views

Can't pipe into netcat

I have a squid proxy running in a docker container, started like this: docker run --privileged -d --publish=3128:3128 --name foo squid I want to get some information from it, from another container ...
0
votes
2answers
16 views

How to send files to coreos from windows workstation

I have some nodejs projects and other files that I want to put on the coreos private server, what is the easiest method to take files from the workstation (windows) and put them into the coreos ...
0
votes
2answers
65 views

How do I install Python in Linux with no Internet access?

Part 1 I have CentOS with no Internet access. I have a docker container based on Ubuntu. I want to install Python inside the Docker container. I downloaded some .deb files for installing Python ...
0
votes
0answers
30 views

Disk usage for a mounted drive shows up completely between the host and a container

When comparing the disk usage for a mounted harddrive the usage is completely different when compared between the host and the container. I am running Ubuntu 14.04 on the host and in the lxc ...
0
votes
0answers
22 views

Install Docker packages for non-root users to user home

I have access to Grid5000 and would like to use Docker containers on it. Tutorial says, that users should install the tools in the user's home and add the user's home to the PATH environment variable. ...
4
votes
1answer
33 views

Share host directory between multiple containers vs. SELinux

Sharing a host directory with a docker container usually is easy enough: $ docker create -v /path/to/hostdir:/path/inside/container --name conta ... Things get more complicated, if SELinux is ...
1
vote
1answer
105 views

Change permissions for files created by docker daemon service

I'm trying to change the default permissions assigned to files when created by the docker daemon by changing the default umask. The docker daemon service runs as root and creates the files with umask ...
0
votes
1answer
102 views

Installing Docker on RedHat fails with 403 forbidden

I'm trying to install Docker on a "Hat Enterprise Linux Server release 7.2 (Maipo)" according to these instructions but sudo yum install docker-engine fails with: ...
2
votes
2answers
131 views

nohup … & doesn't work as expected in docker script

I have a simple Dockerfile like this FROM ubuntu:latest ADD run.sh /run.sh CMD /run.sh In run.sh, I have this (also deadly simple) #!/bin/bash nohup awk 'BEGIN { while (c++<50) print "y" }' ...
1
vote
0answers
80 views

macvlan-network device doesn't communicate outside host from within a container

I am attempting to erect a set of Docker or LXC containers, each with their own routable IP address. The containing host is actually a VM running within RedHat Enterprise Virtualization, which is a ...
1
vote
1answer
57 views

find and kill all docker instances older than 1 day

I need to run a command docker ps -a which says lists: id name time 1 abc 6 weeks ago To kill we need to fire the command: docker kill id I need to find all ids and run the ...
3
votes
1answer
54 views

How to run a program inside a Docker container?

I'm running an application called ERDDAP using this Docker container run thusly: docker stop erddap docker rm erddap docker run -p 8090:8080 -p 8543:8443 -d -v ...
1
vote
1answer
162 views

Docker container doesn't expose ports when --net=host is mentioned in the docker run command

I have a CentOS docker container on CentOS docker host. When I use this command to run the docker image docker run -d --net=host -p 8777:8777 ceilometer:1.x the docker container get host's IP but ...
0
votes
0answers
40 views

rsync fails when ssh can't open /dev/tty

I've got a script that needs to rsync some files to a remote machine. The rsync command looks like this: rsync -avz -e 'ssh -vv -o IdentitiesOnly=yes -i /data/credentials/rsync2.key' \ ...
3
votes
1answer
47 views

Can I build a Docker container from Dockerfile in an interactive way with allocation of some pseudo TTY?

I build container from below Dockerfile: FROM ubuntu:14.04 ... RUN apt-get update && apt-get install -y vim #RUN ssh-keygen -f /root/.ssh/id_rsa -N strongpass123$%^ RUN ssh-keygen -f ...
3
votes
1answer
28 views

bash not resizing correctly within interactive Docker container

Every time the terminal size changes, usually bash will resize automatically so that the LINES and COLUMNS are recomputed correctly. But for some reason this isn't working within a Docker container ...
2
votes
2answers
176 views

How to configure logging inside a Docker container?

I was trying to dockerize (into Debian 8.2) an OpenVPN server (yes, I do know, there already are such containers) but something went wrong inside the container and the server failed to start. I ...
0
votes
0answers
21 views

SSH from a docker container using OS X configs and credentials

I need to set up a Docker container so its users can ssh from it to a third party host, transparently using the configuration and credentials from an OS X workstation that is host to the Docker host ...
0
votes
1answer
572 views

Running Docker under Windows/cygwin environment

I'm not sure if this is the right community to ask about my problem as I'm actually trying to launch docker within cygwin environment on windows. After Docker Toolbox install I'm trying to launch ...
1
vote
0answers
28 views

Why I can not update Linux core in dockers?

When I run apt-get update && apt-get upgrade in container, the core is not starting to update. Yes, I know, containers use the kernel of host machine and can not execute some ...
3
votes
2answers
100 views

Can't install man pages on minimal Centos Docker container

I have a minimal Centos 7 Docker image, and I'm trying to get some man pages on it to help in debugging my Dockerfile. Out of the box, it doesn't have much: # man ls No manual entry for ls Per this ...
1
vote
1answer
148 views

ssh Connection reset by 192.168.x.x

I'm trying to ssh login from Mac OSX 10.10 into CentOS 7.1 on boot2docker by using public key authentication. The problem is that ssh shows Connection reset by 192.168.99.100 when I login to CentOs ...
3
votes
1answer
342 views

How to run builds in Docker containers from Jenkins

I am trying to use Jenkins to build a C++ project in a Docker container. I have no problem building in Jenkins, or building in a container outside of Jenkins. Below is what I tried. I am omitting the ...
0
votes
1answer
67 views

source RPM doesn't seem to install on CentOS with no errors

My experience with CentOS and RPM's is limited so I might be missing something obvious, but I can't seem to figure this out... I'm trying to install Sphinx into CentOS 6 in a Docker image using the ...
3
votes
1answer
499 views

docker compose create containers without starting them

My docker containers are build with docker-compose and I automatically start them container on my CentOS 7 system using derivatives from the documentation example:: [Unit] Description=condb container ...
1
vote
1answer
160 views

Unable to find file after adding in Docker

I am new with Docker and I am trying to use ADD to copy a zipped file locally to the container: RUN mkdir /root/foo ADD foo.zip /root/foo/ UNZIP -o /root/foo/foo.zip I then build and run the ...
12
votes
2answers
4k views

What is the difference between Docker, LXD, and LXC [closed]

What is the difference between Docker, LXD, and LXC. Do they offer the same services or different.
10
votes
2answers
3k views

Creating threads fails with “Resource temporarily unavailable” with 4.3 kernel

I am running a docker server on Arch Linux (kernel 4.3.3-2) with several containers. Since my last reboot, both the docker server and random programs within the containers crash with a message about ...
1
vote
0answers
24 views

Is there a way to automatically restart docker after updating firewall rules with iptables?

A recent update of iptables and firewall rules caused errors in our app. The culprit was finally found: the docker daemon needed to be restarted. Docker adds own NAT rules to the firewall. A way to ...
1
vote
3answers
5k views

Why am I getting “Cannot connect to the Docker daemon” when the daemon is running?

The Docker service is clearly running: $ systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; ...
1
vote
2answers
50 views

Which container implementation docker is using

Docker is based on Linux containers and control groups. But I would like to know which implementation of Linux containers , docker is using? Is it using the native/default (LXC execution environment ) ...
1
vote
1answer
35 views

Do I need at least 3 machines to be able to work on CoreOS?

This is a strange question, but I can't find an answer to it: can I use CoreOS on one machine? Many guides/docs on the internet mention 3 machines. Or can I use it on 2 machines? I'm familiar with ...
0
votes
1answer
131 views

Problem installing docker on kali linux?

I want to install MongoDB on Kali linux but it didn't get install. The problem here is explained. Now is a try to install MongoDB using Docker for which I am following this tutorial. Now when I run ...
0
votes
1answer
61 views

Cannot start minecraft server on Ubuntu Snappy with docker

I have a Raspberry Pi with Ubuntu Snappy on it. I've installed minecraft server with docker pull itzg/minecraft-server Following the instructions from ...
3
votes
0answers
619 views

docker run always fails with “no such file or directory”

Every time that I try to run a container with docker I get the following error: # docker run hello-world Error response from daemon: Cannot start container ...