Tag: docker compose

Failed to run service inside docker container

I need to create docker container which is running Onedrive client so I can synchronize the data to my Onedrive account. This is the project that I’ve created https://github.com/rischanlab/onedrive-ubuntu-docker I created a Makefile, by that file we can make command easily. This is the example of my Makefile shell: @echo @echo “——————————————————————” @echo “Shelling in […]

Docker Compose : build with docker –rm –force-rm to avoid storing intermediates

I have low memory so I frequently need to delete containers, which sucks. This github issue https://github.com/docker/docker/issues/11154 is raised by a guy who has the same constraints and is being suggested to use docker –rm –force-rm build Can I do the same with docker-compose? How? The CLI usage doesn’t seem to accept: docker-compose –rm –force-rm […]

apt-get update is not working inside docker container

I have created the container using the ubuntu:14.04. I have set proxies in the docker file configuration. When i start the conatiner and type command apt-get update it is giving me error. root@4a7043e2f675:/# apt-get update 0% [Connecting to archive.ubuntu.com] will stuck here and after for a while gives error as follow : Err http://archive.ubuntu.com trusty […]

Java in python3-onbuild docker

I need to run a java programm inside the python3-onbuild image (it is based on debian jessie) . I extended the dockerfile with the installation of java, but if i try to print out the version it results in System error: exec: “java”: executable file not found in $PATH I created a repository with my […]

Docker-compose not attaching redis: redis does not start

I have an issue with my docker-compose configuration that I cannot pinpoint: redis won’t start. My docker-compose.yml: web: build: ./web links: – db – redis ports: – “8080:8080” db: image: mysql ports: – “3307:3306” environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: bignibou_dev redis: build: ./redis ports: – “63790:6379” My ./web/Dockerfile: FROM java:8 ADD ./bignibou-server-1.0.jar /app/bignibou-server-1.0.jar ADD ./spring-cloud.properties /app/spring-cloud.properties […]

Writing to Kafka running in Docker from Python fails

I have Zookeeper and Kafka running in Docker on OS X using Docker Toolbox and Docker Compose. My docker-compose.yml file is: zk: image: patrickmay/zookeeper:3.4.6-jessie ports: – “2181:2181” command: /usr/local/zookeeper/bin/zkServer.sh start-foreground kafka0: image: patrickmay/kafka:0.8.2.1-jessie ports: – “9092:9092” command: /usr/local/bin/start-kafka.sh 0 docker-machine 9092 links: – zk kafka1: image: patrickmay/kafka:0.8.2.1-jessie ports: – “9093:9092” command: /usr/local/bin/start-kafka.sh 1 docker-machine 9093 […]

Issues in elasticsearch server running in docker

I am new to Docker. I have developed a webapp that needs elasticsearch server up and running, and the server itself listens for any user request. IN our workflow, we would like to see elasticsearch up and running, then logstash to be able to publish data (by reading the data we have with the help […]

docker-compose nginx volumes not mounted

I have docker-compose.yml with just nginx in it but when running it the volumes is not found inside the nginx container. The Dockerfile works fine in another setup and the src dir exists, so i dont understand why this doesnt work here? Nginx says: nginx_1 | 2015/06/04 09:33:32 [error] 13#0: *1 open() “/var/www/web/index.html” failed (2: […]

Providing a stable url to access a docker container from another docker container

We are using docker-compose to bring up multiple containers and link them together. We need to be able to persist the url of a service running in containerA in our data store so that we can look it up at a later date and use it to access the service from containerB. containerB should not […]

Get 502 Bad Gateway when use fastcgi_pass: 127.0.0.1:9000

I have next docker-compose file: nginx: build: . ports: – “80:80” – “443:443” links: – fpm fpm: image: php:fpm ports: – “9000:9000” The Dockerfile command list is: FROM nginx ADD ./index.php /usr/share/nginx/html/ # Change Nginx config here… RUN rm /etc/nginx/conf.d/default.conf ADD ./default.conf /etc/nginx/conf.d/ And my custom Nginx config default.conf file is: server { listen 80; […]

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