Questions tagged [docker]
Use this tag for Docker container specifications (Dockerfiles) or for code that interacts with the Docker server of a system.
 36 questions
 
 - Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
 
 3
 
 votes
 
 
 
 2
 
 answers
 
 
 
 153
 
 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
 
 
 
 90
 
 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 (...
 
 
 user avatar
 
 
 user289696
 
 
 
 
 
 
 4
 
 votes
 
 
 
 1
 
 answer
 
 
 
 63
 
 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
 
 
 
 151
 
 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
 
 
 
 166
 
 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
 
 
 
 180
 
 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
 
 
 
 194
 
 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
 
 
 
 449
 
 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
 
 
 
 95
 
 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
 
 
 
 77
 
 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 ...
 
 
 
 
 
 3
 
 votes
 
 
 
 1
 
 answer
 
 
 
 134
 
 views
 
 
 
 
 Docker project that deploys a RESTful API with Flask and MySQL
 What's up? this is a small project to teach myself Docker.
This Docker setup works, healthchecks pass for both app and mysql, app is initialized and is listening as expected, what I'm looking is a ...