Tag: containers

How to start service in docker container at start up

I am trying to setup docker image for OpenTSDB with following docker file FROM centos:6.7 MAINTAINER http://www.centos.org RUN yum -y update && yum clean all RUN yum -y install httpd && yum clean all RUN yum -y install java-1.7.0-openjdk RUN yum -y install gnuplot RUN yum install -y https://github.com/OpenTSDB/opentsdb/releases/download/v2.2.0/opentsdb-2.2.0.noarch.rpm RUN sed -i ‘/^#tsd.storage.hbase.zk_basedir*/c\tsd.storage.hbase.zk_basedir = \/hbase-unsecure’ […]

docker swarm – if the container in a service dies on an error, will the task be replicated elsewhere?

In a docker swarm environment what will happen if the container dies because of an internal error? Will the task be reborn?

Docker image larger than its filesystem

I have a docker image that I built from several layers and a debian:jessie base image that I’m working on making smaller. I added a cleanup layer than does apt-get remove a bunch of packages and deletes files from the filesystem. When I run the resulting image and do du -h inside it I can […]

Should I containerize a standalone command-line or terminal application which requires 16 vCPU?

We are using an application which is currently compiled for windows (it is a standalone .exe, not hooked into registry) and which can also be cross-compiled for *nix if needed. This application runs optimally using about 16 threads in parallel. Deploying an entire windows (or Linux) stack seems burdensome and heavy but I don’t understand […]

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 will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.