Tag: ubuntu

/var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

I am very new to the docker when try to run docker info it gives me following error. $ docker info FATA[0000] Get http:///var/run/docker.sock/v1.17/info: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? I am using ubuntu 14.04. I followed the installation istructions mentioned on […]

Docker command can't connect to Docker daemon

I want to make a move to Docker, so I’ve just started to mess around with it. I’ve installed Docker on a VirtualBox Ubuntu 15.10 (Wily Werewolf) installation and as suggested here I then tried running a basic nginx Docker image: $ docker run –name mynginx1 -P -d nginx Cannot connect to the Docker daemon. […]

Add User to Docker Container

I have a docker container with some processes (uwsgi and celery) running inside. I want to create a celery user and a uwsgi user for these processes as well as a worker group that they will both belong to, in order to assign permissions. I tried adding RUN adduser uwsgi and RUN adduser celery to […]

docker-compose up leads to “client and server don't have same version (client : 1.14, server: 1.12)” error but client and server have the same version

docker version prints: Client version: 1.0.1 Client API version: 1.12 Go version (client): go1.2.1 Git commit (client): 990021a Server version: 1.0.1 Server API version: 1.12 Go version (server): go1.2.1 Git commit (server): 990021a docker-compose –version prints: docker-compose 1.2.0 I installed docker with apt-get install docker.io and docker-compose with curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose […]

How do I start cron on docker ubuntu base?

I have installed cron via apt-get install cron Trying to start cron fails (as expected) because of upstart not running. What is the command line for starting cron properly (i.e. it will read users’ crontabs, will read /etc/crontab/* etc)? Please note that I do not want to start the container as a “full” machine, so […]

Docker – Ubuntu – bash: ping: command not found

I’ve got a Docker container running Ubuntu which I did as follows: docker run -it ubuntu /bin/bash however it doesn’t seem to have ping. E.g. bash: ping: command not found Do I need to install that? Seems a pretty basic command to be missing. I tried whereis ping which doesn’t report anything.

docker ubuntu /bin/sh: 1: locale-gen: not found

I put the locale setting codes below into my dockerfile, FROM node:4-onbuild # Set the locale RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 but it gives me the error /bin/sh: 1: locale-gen: not found The command ‘/bin/sh -c locale-gen en_US.UTF-8’ returned a non-zero code: 127 any idea?

Is it possibe to answer dialog questions when installing under docker?

Is it possible to somehow answer the questions that are presented as dialogs when installing some packages using apt-get? For instance I’m trying to setup a container containing the mail-stack-delivery package with: FROM ubuntu RUN apt-get install -y mail-stack-delivery However that dockerfile generates dozens of errors when built that are along the lines of: debconf: […]

cron job not running inside docker container on ubuntu

I have a simple Dockerfile as follows FROM ubuntu:latest ADD crontab /etc/cron.d/test-cron RUN chmod a+x /etc/cron.d/test-cron RUN touch /var/log/cron.log CMD cron && tail -f /var/log/cron.log and the content of crontab file is as simple as * * * * * root echo “Hello world” >> /var/log/cron.log 2>&1 # empty line When I run this on […]

Run docker in ubuntu live disk

I was wondering if it’s possible to install and run Docker in a Ubuntu 14.04 USB Live-Disk. I’m trying it with a 8GB USB, 4 GB for installation and 4 GB for persisted storage, but I keep getting errors when running the containers (no problem in pulling them). Here is my Docker version: $ sudo […]

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