Tag: docker compose

Linode/lamp + docker-compose

I want to install linode/lamp container to work on some wordpress project locally without messing up my machine with all the lamp dependencies. I followed this tutorial which worked great (it’s actually super simple). Now I’d like to use docker-compose because I find it more convenient to simply having to type docker-compose up and being […]

mvn jetty:run not reflecting changes when run inside docker

I have a simple Tic-tac-toe Java web app https://github.com/rajaraodv/tictactoe It is a Maven project. It uses Jetty to run the web app by doing mvn jetty:run While it is running locally, I can easily modify a JavaScript file and see the changes immediately when I refresh the browser. But, when I run it via Docker […]

PermissionError: [Errno 13] Permission denied: '/code/manage.py'

I was trying to run django app on docker container. Followed steps mentioned at https://docs.docker.com/compose/django/ But after running the command docker-compose run web django-admin.py startproject composeexample . I facing error PermissionError: [Errno 13] Permission denied: ‘/code/manage.py’ I’m using centos 7. please help [root@localhost docker-django]# docker-compose run web django-admin.py startproject composeexample . Traceback (most recent call […]

How can I write Dockerfile for Yesod? “RUN yesod init -n myApp -d postgresql” didn't work as expected

I tried to make a simple application with Yesod and PostgreSQL using Docker Compose but RUN yesod init -n myApp -d postgresql didn’t seem to work as expected. I defined Dockerfile and docker-compose.yml as below: Dockerfile: FROM shuny/ghc-7.8.4:latest MAINTAINER shuny # Create default config RUN cabal update # Add stackage remote repo RUN sed -i […]

Docker compose: possible to model lazy startup of dependent services?

I posted this question originally on the Docker forums, but didn’t get any response there. I’m wondering what the best way would be to model a set of services let’s call them db, web, and batch. db is simply a running database server instance (think MySQL). web is a web application that needs to connect […]

Circular import error Docker Compose OSX VM linking two containers

I have several containers I’m running with Docker Compose. Two of them need to talk to each other, so I’ve linked them like this in docker-compose.yml: serviceone: links: – servicetwo servicetwo: links: – serviceone But, it throws an error saying “Circular import between x and y”. This post solves the issue for people who are […]

Docker recreates directories on host after reboot

I created some containers on my system (ubuntu 14.04) using docker-compose which mounted directories from the host into the containers. Now, every time I reboot the host, these directories are recreated, even though the containers do not longer exist (and I therefore deleted the directory). Example: I had a container for gitlab-ci in /var/docker/gitlab-ci/ Containing […]

Can't figure out how I have to build my Docker architecture

So currently I’m building an API in PHP as different (micro) services which runs on nginx. I’ve followed all the Docker fundamental video’s and went through the docs, but I still can’t figure out how to implement it. Do I need a server where I push my code to and deploy on the containers (with […]

Parallel test processes within docker container

I’m executing parallel_tests within a docker container, e.g. one host command. parallel_tests will examine the resources, and spawn a process per core, and in my instance I have 8 cores available: # docker info Containers: 5 Images: 75 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 85 Dirperm1 Supported: true Execution Driver: native-0.2 […]

Kubernetes Guestbook Example Not Loading Page

New question: I’ve followed the guestbook tutorial here: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/README.md And the output of my commands match their outputs exactly. When I try to access the guestbook web server, the page does not load. Specifically, I have the frontend on port 80, I have enabled http/s connections on the console for all instances, I have run […]

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