Tag: containers

How do I run a docker container as a privileged user with user namespaces

I am running with user namespaces enabled and I need to run a particular container as a root user (the container needs to be able to execute the Linux mount command from inside). How do I run a specific container in privileged mode when namespaces are enabled?

Docker for Mac Beta: Unable to link containers properly

I have tried linking two containers and executing commands valid on one from the other which works in the docker toolbox version of the tool. Copy of YML file: version: ‘2’ services: nginx: image: nginx:latest hostname: nginx links: – php ports: – “8000:80” privileged: true php: image: php:5-fpm hostname: php privileged: true I expect to […]

docker containers share unix abstract socket or dbus

Can docker containers share a unix abstract socket like the ones for DBUS? If it can be done, how do you do it? If it cannot or cannot yet, is there a way to share a dbus connection among the host and containers, or between containers?

Auto-restart Docker container when contents of host folder change

I am running a Docker container in CoreOS (host) and mounted a host folder with a container’s folder. docker run -v /home/core/folder_name:/folder_name <container_name> Now, each time I am changing (insert/delete) some file in that host folder (folder_name), I have to restart the container (container_name) to see the effects. docker restart <container_name> Is there any way […]

Can't push my own image to IBM Bluemix Registry

I created a custom image with docker build, and want to push it to IBM Containers on Bluemix. I did login with cf login and cf ic login, then I tagged the image, set the correct registry and namespace, and the push command worked only for a few layers and then it got stuck at […]

Docker for Mac. docker run -d -p 80:80 –name webserver nginx shows another container with this name. but docker ps shows empty list

I am learning “Docker for Mac” $ docker run -d -p 80:80 –name webserver nginx docker: Error response from daemon: Conflict. The name “/webserver” is already in use by container 728da4a0a2852869c2fbfec3e3df3e575e8b4cd06cc751498d751fbaa75e8f1b. You have to remove (or rename) that container to be able to reuse that name.. But when I run $ docker ps It shows […]

Docker and Kubernetes repository for linux

I have been trying to do a Docker and Kubernetes setup on Linux on aws but I am unable to do the same. yum install -y docker docker-registry etcd kubernetes flannel Loaded plugins: amazon-id, rhui-lb, search-disabled-repos No package docker available. No package docker-registry available. No package kubernetes available. No package flannel available. Can anyone suggest […]

Docker Busybox container add groups and user

I need users in my docker containers. My build is from the busybox image which is missing groupadd, I tried to add it using apt-get but that’s also missing. What do I need to add to my Dockerfile to get groupadd? So far I have FROM busybox RUN apt-get install bash RUN groupadd -r postgres […]

Docker SSH Server Connection Refused

I have the following Dockerfile for my container: FROM ubuntu:latest RUN apt-get upgrade RUN apt-get update RUN apt-get -y install openssh-server CMD tail -f /dev/null However, when I build and run it, it says connection refused. I tried almost everything I could find for solutions, including “ufw allow” which does not work as it tells […]

How can we add capabilities to a running docker container?

Is it possible to add a capability (for ex: NET_ADMIN) after the container has actually started? I started a container few days ago and a service provided by it is being used by several other processes which are running remotely on other servers. I need to add a loopback interface to it, but unfortunately, I […]

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