Category: Docker

Docker Technology Fans

How can I connect a PHP container with nginx container by using docker-compose?

I’m trying to create a simple LAMP stack in a Docker enviroment. It worked by running a third-party container phpdockerio/php71-fpm:latest, but I wanted a custom PHP container with XDebug installed, for the moment. My problem is that, if I execute docker-compose up, the PHP container exit after startup before my webserver container can make usage […]

Docker commands fails (in Windows)

I am trying to use Docker on a windows machine and is hit with every possible issue it seems. My latest one is this: My machine is running but I can’t seem to interact with it using the docker commands. If I run a very standard command like: docker ps I get an error message […]

How to continue using docker container after startup application exit?

I want to create docker image that will start nano editor after running and give users possibilities continue work after nano closing. For that I wrote next Dockerfile FROM ubuntu:14.04 RUN apt-get update && apt-get install -y nano RUN mkdir /home/working ENV EDITOR /bin/nano WORKDIR /home/working ENTRYPOINT /bin/nano After running container (docker run -it –rm […]

Merging host and container volume contents in docker

I have a project with a docker image whose volume contains contents on start up. Are there any methods to MERGE the contents of both host and container on the volume yet keep the host contents persistent over in the container? this is my compose.yml services: db: image: mysql environment: MYSQL_DATABASE: ninja MYSQL_ROOT_PASSWORD: pwd app: […]

Why cloudera likes to make name node and data node dir in /etc/hosts

Not sure why it happens during installing CDH using cloudera manager but it defaults to creating directories in /etc/host ?? I am trying to install it inside a docker container –

docker-maven-plugin: How to define which tests are run for which image?

Using the fabric8io/docker–maven-plugin, I would like to run specific tests for specific images: Test A should run against Docker image A Test B should run against Docker image B etc What’s the best way to do this? I could probably use Maven profiles, but then I have to run each profile explicitly. Is there a […]

Kubernetes Service External IP not being assigned

I have the following deployment yaml: apiVersion: v1 kind: Namespace metadata: name: authentication labels: name: authentication — apiVersion: apps/v1beta1 kind: Deployment metadata: name: authentication-deployment namespace: authentication spec: replicas: 2 template: metadata: labels: app: authentication spec: containers: – name: authentication image: blueapp/authentication:0.0.0 ports: – containerPort: 8080 — apiVersion: v1 kind: Service metadata: name: authentication-service namespace: authentication […]

certbot.main:Exiting abnormally

I’m trying to write an nginx docker container which should auto-generate SSL certificates using certbot. However, I’ve encountered this problem and I admit I don’t understand it very well. Any idea what’s wrong, please? 2017-07-03 23:49:01,253:DEBUG:certbot.main:Root logging level set at 30 2017-07-03 23:49:01,255:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log 2017-07-03 23:49:01,256:DEBUG:certbot.main:certbot version: 0.9.3 2017-07-03 23:49:01,256:DEBUG:certbot.main:Arguments: [‘–quiet’, ‘–standalone’, […]

OSError: [Errno 13] Permission denied when initializing Celery in Docker

I’ve been getting the following error when running docker compose. The problem doesn’t happen at all in my Mac OS dev environment (this error in occuring when trying to deploy in Ubuntu & debian), but the error seems to suggest that Celery does not have access to write the celerybeat file. I’ve been trying for […]

Can't connect to dockerized rabbit from clients

I installed and ran rabbitmq on docker from https://hub.docker.com/_/rabbitmq/: docker ps 24551542aa20 repo/rabbitmq-example-server:latest “/docker-entrypoin…” 23 hours ago Up 2 hours 4369/tcp, 5671-5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp rabbitmq-example-server I can login on the admin with http://localhost:15672/ From terminal I can use rabbitmqadmin succesfully for all the examples here http://www.rabbitmq.com/management-cli.html, adding -u admin -p nimda for authentication. I […]

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