Category "docker"

How to prevent database docker from being rebuilt and losing production data

I love using docker & docker-compose for both development and production environments. But in my workflow, I keep considering dockers as disposable: it me

Running Ngrok in a container using docker

[https://github.com/gtriggiano/ngrok-tunnel ] runs ngrok inside a container. Ngrok is required to run in the container to avert security risks. But am facing pr

Why could Kafka warn "partitions have leader brokers without a matching listener"?

I'm trying to get Kafka to work on docker-compose for the first time. The application runs fine without docker. But on docker, I get the error as described belo

How to mount existing directory on Windows Host in Docker Portainer?

I have docker-compose.yml volumes: - D:/Docker/config:/config - D:/Downloads:/downloads I can do this with docker-compose up without any issue Bu

debconf: delaying package configuration, since apt-utils is not installed

I'm setting up Docker to run my CakePHP application and my Dockerfile is like FROM php:7.2-apache # Enable Apache Rewrite + Expires Module RUN a2enmod rewrite

how do i add a topic to a running kafka container using docker commands?

I have a kafka container started using following docker run --detach --name kafka -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=192.168.1.89 --env ADVERVTIS

Java using much more memory than heap size (or size correctly Docker memory limit)

For my application, the memory used by the Java process is much more than the heap size. The system where the containers are running starts to have memory prob

Docker OpenJDK 17 does not contain certificate

I want to create a docker image with OpenJDK 17 but it will be modified by adding our company's certificates. Dockerfile: FROM openjdk:17 COPY Certs /certs RU

Can't seem to get MySQL to start in Docker Container

I'm trying to get MySQL to run in a Docker Container under Windows 10 WSL 2. I attempted to start the container with this command: docker run -d --name mysql -

How to install mysql-server in a Dockerfile?

I have a complex Dockerfile which install much more than just mysql-server so I cannot start from an existing mysql container. When removing all the extra-stu

Separate PHP script in a cron job

I have about 10 accounts. Also, I have a cron job with php script which executes every minute. This script is working for each client one by one. The problem is

Cant set up php enviroment in Docker

When I run docker run --rm -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer install to install all the composer dependencies, these popped up ~

Docker container sending request to http

Hi I have a question. I am using docker compose ver3 and consul image as container, on my host machine I have a simple service that should response to http re

Nginx 403 while accessing static files in docker volumes

I am trying to serve static files in docker volumes for my Django project. Nginx is able to access the files(403) error. I tried to solve this in different way

Migration Table Creation Error when using Laravel Sail. Information_schema.tables missing

My colleague has created a docker-composer.yml file and has shared that image with me. When I run the container and attach this image, I am unable to create mig

Volume binding using docker compose on Windows

I recently upgraded my Docker Toolbox on Windows 10, and now my volume mounts no longer work. I've tried everything. Here is the current mount path: volumes:

Problem with setting up a stack nginx proxy manager using portainer on my home server

I had this error while trying to setup a nginx proxy manager container using portainer, portainer started without problems error: Recreating 3167b8f95097_nginxp

Problem while rs.initiate() for setup docker-compose for replica set

I want to setup MongoDB replica set with docker-compose with only one node. This is my docker-compose.yml file: version: '3.7' services: mongodb1: image

WARNING: The DB_USER variable is not set

I am using docker compose for my project. And I have a strange error after docker-compose up --build: WARNING: The DB_USER variable is not set. Defaulting to a

unknown error: DevToolsActivePort file doesn't exist when running in Docker

I am trying to run chrome using Python and selenium in a Docker container running alpine. It was running fine until one day when it started throwing the followi