Hi all, When I'm writing compose files, I've noticed that adding the command key seems to override default behaviour when running docker-compose up that I would still like to initiate; for instance, starting mysql server in the mysql docker image. If I want to do additional scripting in the container without preventing that default script ..

Read more

We want to dockerize a Laravel app ready to deploy on AWS ECR/ECS. We made some test but we are having some issues with the apache configuration. We hace the next Dockerfile: FROM php:7.4-apache WORKDIR /var/www/html # Copy composer.lock and composer.json COPY composer.lock* composer.json* /var/www/html/ # install all the dependencies and enable PHP modules RUN ..

Read more

I have a base image and several completely orthogonal “dimensions” of completely static overlays that map into data directories, each with several options, that I want to permute to produce final container(s) in my deployments. As a degenerate example, the base image (X) will need one of each of (A,B,C), (P,D,Q), and (K,L,M) at deployment ..

Read more

On my Windows 10 Home computer with Docker Toolbox, Docker is having trouble mounting the drives. I’ve already run dos2unix on the entrypoint.sh file. The full error is as such: ERROR: for users Cannot start service users: OCI runtime create failed: container_linux.go:346: starting container process caused “exec: “/usr/src/app/entrypoint.sh”: stat /usr/src/app/entrypoint.sh: no such file or directory”: ..

Read more

I have a site (flask) that allows some users to save files to the /home/dir1/dir1_data directory inside a docker container. If I do sudo docker exec -it docker_container_1 /bin/bash and I cd into the directory /home/dir1/dir1_data I see the files that some users saved. For example I see: my_first_file.csv I then want other users to ..

Read more

I have a custom docker image from mongo:4.2-6-bionic with two initdb scripts: /docker-entrypoint-initdb.d/1-database-seed.sh /docker-entrypoint-initdb.d/2-create-indexes.sh When the image is created, the 1-database-seed.sh file is executed correctly. But, 2-create-indexes.sh is not executed. If i execute manually 2-create-indexes.sh, inside the container, the script runs correctly. The script content is: #!/bin/bash mongo renaper –eval “db.names_indexed.createIndex({‘fullname’: 1})”; mongo renaper –eval ..

Read more