Tag: ubuntu

host to docker directory mount error

I am getting this error while mounting host directory to docker container. $ docker run -v $pwd:/opt/lampp/htdocs/ -it xampp bash docker: Error response from daemon: invalid volume spec “:/opt/lampp/htdocs/”: invalid volume specification: ‘:/opt/lampp/htdocs/’. See ‘docker run –help’. Inside docker /opt/lampp/htdocs/ exists : Please help.

Docker RUN apt-get -y update && apt-get install -y fortunes

Tried to build my own docker, got a little problem, here’s the log i was following the tutorial on Docker. FROM docker/whalesay:lateset RUN apt-get -y update && apt-get install -y fortunes CMD /usr/games/fortune -a | cowsay This happened after RUN apt-get… W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_universe_source_Sources.gz is not what the server reported 213537 7925687 W: […]

Docker – Ubuntu – Nginx – MariaDB – Connection refused

Im trying to setup a docker container on OSX with Docker – Ubuntu – Nginx – MariaDB to run a Laravel App My docker settings are: version: “2” services: nginx: build: context: ./nginx ports: – “8080:80” volumes: – ./app:/var/app fpm: build: context: ./fpm volumes: – ./app:/var/app expose: – “9000” environment: – “DB_HOST=db” – “DB_DATABASE=laravel_db” db: […]

autoconf configure warning: /usr/bin/file: No such file or directory

When I use my configure in a ubuntu OS (16), there seems to be no problem. I have installed the autoconf tool and dependencies. When I run the same configure file in a ubuntu (16 or latest) The problems is that I did not install any autotools. I am getting the following error message. ./configure: […]

Bypass install configuration in dockerfile

I am trying to install icinga2-ido-pgsql on an Ubuntu Docker container. My database is in a separate container. To install it I run RUN apt-get install -q -y icinga2 icinga2-ido-pgsql When installing icinga2-ido-pgsql it runs dbconfig-common which gives the prompt. Configure database for icinga2-ido-pgsql with dbconfig-common? [yes/no] Which then gives me a load of errors […]

Connecting a Docker container running PHP to the host's(ubuntu on VirtualBox) MSQL server

Running VirtualBox with Ubuntu 16.04 on which I have a Docker container that has Apache2 and PHP installed. MYSQL is installed on the host(ubuntu on VirtualBox). I am trying to access the MYSQL server on host from the docker container <?php $host = ‘192.168.136.101’; $user = ‘root’; $pass = ‘****’; $db = ‘test’; $port = […]

sbin/start-stop-daemon not able to start python – ubuntu docker container

I have a simple python script which I want to start a daemon-service in background in docker container /sbin/start-stop-daemon –start –user root –make-pidfile –pidfile /var/lock/subsys/my-application.pid –exec ‘python /opt/app/uc/monitor/bin/my-application.py’ when I execute this command in a shell I get /sbin/start-stop-daemon: unable to stat //python /opt/app/uc/monitor/bin/my-application.py (No such file or directory) However when execute just the below […]

Run Go app created in windows in Docker container (Ubuntu)

I created very simple application that put to output some text. My development environment is Windows + Docker for Windows. I created ubuntu container and after build my application in Windows for ubuntu set GOARCH=amd64 set GOOS=linux go build -o “myapp” Then I copy ‘myapp’ file to shared folder and see it in shared folder […]

Docker in Ubuntu switching filesystem to overlay is not supported?

I’m running docker in a vagrant virtual box with Ubuntu on a Mac logged in as root user and I’m trying to switch from devicemapper to overlay but I’m getting an error saying: root@vagrant-ubuntu-trusty-64:/# service docker stop docker stop/waiting root@vagrant-ubuntu-trusty-64:/# rm -rf /var/lib/docker root@vagrant-ubuntu-trusty-64:/# docker daemon -s overlay Command “daemon” is deprecated, and will be […]

Ubuntu dockerfile – mailutils install

I am installing mailutils via a dockerfile on an ubuntu image. I do this via: RUN apt-get install -y mailutils However, on this line I get the following: Please select the mail server configuration type that best meets your needs. No configuration: Should be chosen to leave the current configuration unchanged. Internet site: Mail is […]

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