Questions tagged [docker]
Use this tag for Docker container specifications (Dockerfiles) or for code that interacts with the Docker server of a system.
37 questions
5 votes
3 answers
696 views
Bash script for manually cleaning up the Traefik access log file and limiting it to a maximum of 50 MB
I have written a short bash (or POSIX-compliant) script to clean up the Traefik access log file and limit it to a maximum of 50 MB. I would like to know what you think of it. Any suggestions are ...
3 votes
2 answers
165 views
Laravel Wallet Service Backend
I’ve built a backend-only wallet service using Laravel 8, and it’s fully containerized with Docker. The project handles two user roles (Players and Backoffice Agents) and provides JWT-based ...
1 vote
0 answers
96 views
Performance of a dockerfile that uses vcpkg, c++, rust, swift and npm
I have the following dockerfile, which builds a Backend and Frontend for a large project. The project uses the following technologies: C++ (using vcpkg as a package manager <-- very slow) Swift (...
4 votes
1 answer
69 views
sqlalchemy and alembic integration in FastAPI
I am building a fastAPI + sqlalchemy + alembic + docker-compose reusable template. Full source code: https://github.com/mascai/fastapi_template (commit 77ce7f2) I would appreciate pull-requests =) The ...
5 votes
2 answers
154 views
Bash Script for Docker Image Cleanup
I’ve been working on a bash script to clean up old Docker images while keeping the latest tag for each repository and skipping images currently in use. I’m sharing the script below and would ...
2 votes
1 answer
170 views
Update a docker compose service properly
I'm currently running an executable in Docker that has been mounted as a Docker volume in the foreground. The executable (or the service) continuously generates console output and can be interrupted ...
1 vote
0 answers
181 views
How to reduce the build time/cache Docker image layer in subsequent GitHub Actions runs?
I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. How to cache ...
5 votes
2 answers
2k views
How to reduce the build time of Docker image layer in GitHub Actions?
I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. Approach 1: ...
4 votes
1 answer
81 views
Debian and Docker compose upgrade script, 2nd version
As a continuation of this question, I would like a second review from you. Here is the updated sh script: ...
3 votes
1 answer
195 views
Debian and Docker compose upgrade script
I'm running Debian 12 and Docker compose containers. Once a day, crontab should start the script, but the script should also be called manually. Could you rate my upgrade script file or recommend an ...
5 votes
2 answers
450 views
Parsing gateway ip from `/proc/net/route` in a docker container
In try to replicate the outcome of the following command sequence using php: netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10 I did this using ...
4 votes
2 answers
7k views
Install specific version of Python in docker
Downloading specific version like 3.11.1 from https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz and installing ...
3 votes
0 answers
96 views
CLI app to spin up a Docker cluster
This is my first Go project. I've written a CLI app to provision a database cluster on docker containers. Since it's a distributed database, you can configure per-node services. For example: to ...
7 votes
1 answer
2k views
Nginx Docker image with built from source with modules
I needed Nginx Docker image with additional modules (Lua and headers more) and Lua Prometheus lib. I did not want to use Openresty for that because its Alpine docker image weighs ~110MB, when Nginx ...
2 votes
0 answers
83 views
a C/Python X server interface extension package
The project is named winlin; it's a portmanteau of the words window and Linux. I'm working on a CPython extension to interact with the X server and manipulate windows. I don't have a ton of ...