Tag: docker

Connection refused when trying to run Kong API Gateway using a docker container

I am trying to run Kong API Gateway using a docker container. I followed the instructions on hub.docker.com/_/kong/, started Cassandra database and Kong. I have Cassandra running using the below command: docker run -d –name kong-database \ -p 9042:9042 \ cassandra:3 and Kong running using the below command: docker run -d –name kong \ –link […]

Letsencrypt + Docker + Nginx

I am referring this link https://miki725.github.io/docker/crypto/2017/01/29/docker+nginx+letsencrypt.html to enable SSL on my app which is running along with docker. So the problem here is when I run the below command docker run -it –rm \ -v certs:/etc/letsencrypt \ -v certs-data:/data/letsencrypt \ deliverous/certbot \ certonly \ –webroot –webroot-path=/data/letsencrypt \ -d api.mydomain.com It throws an error: Failed authorization […]

How to create a MongoDB docker and save the DB's configuration?

I pretty new with dockers and started to play with it during my last project. I have a MongoDB container which I wish to move between some machines during the development. I have some questions regards it- Is there an option to copy-paste all the DB data? Mean that when I copy the image container […]

How can my docker stack automatically not reuse volumes on redeploy?

What I need I want my docker cloud services to not reuse existing volumes when they’re automatically redeployed. Where I’m at I’ve only managed to manually de-select the option to “Reuse existing container volumes?” from the UI when redeploying. There seems to be a reuse-volumes that can be used through the API, but I haven’t […]

Backslash preservation with Docker, echo, and Perl

I am using perl to call docker exec in a very specific way to echo information into /etc/bashrc within a Docker container. I have two Perl variables that I need interpolated into the echo command. $c_name will usually have a value of test1 or something.$net_ip will usually have a value of 192.168.0.x my $prompt = […]

mysql container linking to only one containers

This is the docker-compose.yml file mySql: image: mysql:latest environment: MYSQL_PASSWORD: root myContainer1: image: container1:latest ports: – 9000:9000 links: – mySql:dev-mysql myContainer2: image: container2:latest ports: – 9001:9000 links: – mySql:dev-mysql – myContainer1:dev Now when i am runing this file i am getting MySql timeout error with myContainer1 but with myContainer2 it is working fine. Error log […]

How to run Caddy from Docker container? (443 bind: permission denied)

As you would asume, I’m just starting to work with Docker and Caddy but I’m haven’t being able to run it since I’m getting the following error: Could not start HTTPS server for challenge -> listen tcp :443: bind: permission denied Here is the docker-compose.yml: webserver: image: jumanjiman/caddy depends_on: – parse-dashboard – loovus ports: – […]

Airflow: Could not send worker log to S3

I deployed Airflow webserver, scheduler, worker, and flower on my kubernetes cluster using Docker images. Airflow version is 1.8.0. Now I want to send worker logs to S3 and Create S3 connection of Airflow from Admin UI (Just set S3_CONN as conn id, s3 as type. Because my kubernetes cluster is running on AWS and […]

How to set hostname in global service in Docker Swarm

I have a service deployed to my Docker Swarm Cluster as global service (ELK Metricbeat). I want to each of this service to have a hostname the same as the hostname of the running node (host)? in another word, how I can achieve the same result in the yml file such as: docker run -h […]

eclipse pdt debugger configuration with docker container for apache2, php7 and xdebug hosted on ubuntu 16.04

I have a setup using a docker container with apache2, php7, and xdebug installed. The host system runs ubuntu 16.04. I have installed eclipse neon latest download on the host computer and have tried many different configurations to get xdebug working. I have configured the container to expose ports 80 and 9000 and have configured […]

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