Tag: docker compose

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 data-only container permissions

I’m developing PHP app and I’m stuck with Docker volumes. I’ve tried to create a separate data-only container for my PHP app but couldn’t make it work because of permission issues… I’ve googled and read all I could and the most close to working solution is described here But it’s a bit old and I […]

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