Docker is an application to create containers for applications.
0
votes
0answers
6 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
11 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
27 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
28 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
11 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
17 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 ...
1
vote
1answer
39 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
20 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
14 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
56 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
19 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
30 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
87 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
72 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
89 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
67 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
48 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
45 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
109 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
35 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
41 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
22 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
154 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
400 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
27 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
89 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
116 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
247 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
61 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
390 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
140 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 ...
8
votes
2answers
2k 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
2k 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
19 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
2answers
4k 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
47 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
33 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
116 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
56 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
559 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 ...
3
votes
1answer
807 views
Can't run docker hello-world: mountpoint for devices not found
New to docker.
Installed docker from software management tool in mint 17.
When I run docker run hello-world I receive:
FATA[0000] Error response from daemon: Cannot start container ...
-1
votes
1answer
26 views
Connect Docker container and host to different network
I don't know if this makes any sense, but is it possible to use WiFi in host but only mobile broadband in a docker image?
5
votes
1answer
284 views
What is cgroupfs and how is it used with Docker?
In the Docker documentation there is a discussion of options for the native execdriver (https://docs.docker.com/engine/reference/commandline/daemon/). The documentation says
The ...
3
votes
0answers
116 views
curl request to IPv6 localhost gets stuck
A docker container of mine exposes a HTTP interface on port 8500, which is
mapped to host port 8500. It is not IPv6 enabled.
This still means, I should be able to access it at
localhost:8500. IPv6 ...
0
votes
0answers
56 views
Building Apache hadoop on fedora 22 - Could not resolve 'archive.ubuntu.com'
I've having an issue with building apache hadoop by Docker 1.9.1 on my fedora 22.
I'm getting the following output when executing ./start-build-env.sh for building environment for apache hadoop.
...
1
vote
0answers
34 views
Docker(-like virtualization) for non-ephemeral VMs/isolation? [closed]
Until now I used KVM/Xen for virtualization. I heared about docker beeing a light-weight alternative to it. But the official best practices of docker state that docker-container should be ephemeral. ...
1
vote
1answer
50 views
building docker images makes the Vagrant-managed VBox VM freeze
Folks
While researching utilizing Docker images for web apps development I've stumbled upon the following issue.
(all commands found bellow are executed inside a Vagrant-managed VBox vm)
Create a ...