Tag: ubuntu

How to make communicate between nginx and php container

I have PHP web application and i want to convert it into docker. I have these containers mysql php nginx I have source code in my host folder as /var/www/site1 Now when i launch nginx , then i can mount site1 to nginx as /usr/nginx/share/html But i am not sure how does i link with […]

Is there a way to backup my docker environment

I am using Ubuntu 14.04 and running some docker containers and images with a python script.Now i have to reinstall that into another Ubuntu machine. Ex: that machine is not even having docker installed Is there a way to backup complete docker engine from my configured machine to another machine

Not able to Build any Dockerfile

I tried different answers to my question but nothing seems to work. When ever I try to build any docker file I end up with the same error message: E: Unable to locate package htop INFO[0000] The command [/bin/sh -c apt-get install -y htop] returned a >non-zero code: 100 Here is the Dockerfile: FROM debian:latest […]

Getting “can't cd” error when when building using dockerfile

This is the complete dockerfile FROM ubuntu:12.04 # Create directory RUN mkdir -p /dir/subdir # Download wget RUN apt-get install -y wget # Make sure package is up to date RUN apt-get update # Install nodejs WORKDIR /dir RUN wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x64.tar.gz RUN tar -zxf node-v0.10.26-linux-x64.tar.gz RUN cd /node-v0.10.26-linux-x64 && ./configure RUN cd /node-v0.10.26-linux-x64 && make […]

Brand new Ubuntu 14.04.2 Docker container + Nginx: connection refused on port 80

I followed the instructions at Digital Ocean’s “How To Install Nginx on Ubuntu 14.04 LTS”, which states that Nginx should be running as soon as it is installed, but the following Dockerfile: FROM ubuntu:14.04.2 RUN apt-get update -y RUN apt-get -y install curl RUN apt-get -y install nginx RUN curl | grep “Welcome to […]

Dokku installation fails

I’m building provisioning ansible script. I often execute it for debug purpose during development. I use digital ocean ubuntu 14 droplet. For a long time everything was ok, but few days ago the same code stopped working (every execution is on a fresh droplet) I have an error installing Dokku 0.4.3 –> Installing dokku OK […]

stuck at command “sbt compile” in docker ubuntu

I try to include sbt into docker images. However, it never works and always stuck at Getting org.scala-sbt sbt 0.13.7 … Also, it is also not working for changing the sbt version. Here is the snippet of docker file FROM ubuntu:14.04 RUN echo “deb https://dl.bintray.com/sbt/debian /” | sudo tee -a /etc/apt/sources.list.d/sbt.list RUN sudo apt-get update […]

building docker 0.7.2 from sources on Ubuntu 12.04

I am trying to build docker from sources. I downloaded the latest release from the github.com account here: https://github.com/dotcloud/docker/archive/v0.7.2.tar.gz Changed one line of code to make Ctrl-p Ctrl-q into Ctrl-^ Ctrl-q: diff utils/utils.go utils/utils.go~ 483,484c483,484 < // char 16 is C-p — avilella char 30 is C-^ < if nr == 1 && buf[0] == […]

Ubuntu version update error with Docker and ElasticBeanstalk

I’m trying to understand why I can’t do an upgrade of Ubuntu versions on the given Elastic Beanstalk example with Docker. This works fine: FROM ubuntu:12.04 RUN apt-get update RUN apt-get install -y nginx zip curl RUN echo “daemon off;” >> /etc/nginx/nginx.conf RUN curl -o /usr/share/nginx/www/master.zip -L https://codeload.github.com/gabrielecirulli/2048/zip/master RUN cd /usr/share/nginx/www/ && unzip master.zip && […]

How to use alsa sound and/or snd_pcm_open in docker?

I am running an Ubuntu 12.04 Docker container on an Ubuntu 16.04 host. Some test code I have exercises ‘snd_pcm_open’/’snd_pcm_close’ operations with the SND_PCM_STREAM_PLAYBACK and SND_PCM_STREAM_CAPTURE stream types. I do not need any actual sound/audio capabilities but just getting the ‘snd_pcm_open’ return 0 with a valid handle, then ‘snd_pcm_close’ to return 0 on the same […]

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