Tag: ubuntu

Docker pull error : x509: certificate has expired or is not yet valid

Description of problem: I’m trying to pull ubuntu from the public registry with this command : docker pull ubuntu And then i got this results (the previous command was working yesterday) : “Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubuntu/images: x509: certificate has expired or is not yet valid” docker version : Client: Version: 1.10.0 API version: […]

docker daemon error running devicecreate createpool

my v-server has a vm running serveral docker containers that are in use as a drive. when we try to reach our server apache sends a failure saying that services are currently unavailable. so i logged in to the server and tried running the run.sh in the owncloud folder. when the script trys to run […]

Running Supervisord on Ubuntu in Docker

I’m trying to use supervisor to start nginx and postgresql on boot of a docker container. Using the following Dockerfile and supervisord.conf files, the aforementioned applications start but moments later stop. Does anyone know what could be wrong? There are no error messages to stderr or system log files. Dockerfile: FROM ubuntu:14.04 RUN mkdir -p […]

Dockerfile won't run script as user with sudo rights

I have this Docker file… FROM ubuntu:14.04 MAINTAINER Sindhu S sindhu@alum.hackerschool.org # RUN apt-get update && apt-get -y install sudo wget bash git && rm -rf /var/cache/apt-get/archives/* RUN adduser –disabled-password –gecos “” scrollback RUN adduser scrollback sudo RUN echo ‘scrollback ALL=(ALL) NOPASSWD:ALL’ >> /etc/sudoers RUN mkdir -p /home/scrollback && chown -R scrollback:scrollback /home/scrollback WORKDIR /home/scrollback/ […]

Docker and MySQL can't connect

I can’t for the life of me figure this out. I feel like I’m really close, but im just not quite there yet. Here’s my Dockerfile: FROM ubuntu:14.04 MAINTAINER Oscar Godson RUN apt-get update RUN apt-get install -y nodejs-legacy RUN apt-get install -y npm RUN apt-get install -y mysql-server RUN apt-get install -y mysql-client COPY […]

no json module when running python script in docker container

I’m trying to run a simple python script that takes a json string as an argument in a docker container. However I get the following error: Traceback (most recent call last): File “/root/simple.py”, line 2, in <module> import json ImportError: No module named json I’m running the standard ubuntu:12.04 image. Here’s how I call up […]

Docker running multiple Apache instances

Here is what I am trying to do Setup a Docker container to run Ubuntu Link it to another container running Apache + PHP and yet one more running MariaDB + ReDis Now I want to, say, allow three users to run their own virtual instance of Apache so I map Port 443 on each […]

Porting issue with Docker

Hey I tried running the command sudo docker run -d -P training/webapp python app.py” from the tutorial but I keep getting the error FATA[0000] Error response from daemon: Cannot start container. I downloaded the image fine but the trouble occurs whenever I try to run it. I checked the port sudo docker port (name) and […]

Running Freepascal compiler in a docker container

I want to use the Freepascal compiler inside a docker container, came from ubuntu 14.10 image. When I want to install it via apt-get install fp-compiler or fp-compiler-2.6.2 I got the error package not found. But if I browse the package list online it should be there? Did the ubuntu docker image use a different […]

Getting puppet error on docker ubuntu image

I am using phusion/baseimage for my ubuntu and i have provisioning done via puppet. IN the process i get this error Error: /Stage[main]/Supervisor/Service[supervisord]: Could not evaluate: undefined method `[]’ for nil:NilClass I searched internet and there are many threads like https://groups.google.com/forum/#!topic/docker-user/imtWQNZ3aWo https://ask.puppetlabs.com/question/10955/issues-with-ubuntu-docker-image-and-puppetlabs-mysql/ They all say to use ubuntu-upstart as base image. I want to know […]

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