Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [docker]

Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
125 views

why we still have Windows Containers when Docker Desktop in Windows still uses a Linux VM?

we know that Docker on Windows runs a virtual machine in the background so that may seem like you are able to run Linux Containers on Windows, but behind the scenes Docker for Windows is actually just ...
user22155685's user avatar
0 votes
1 answer
129 views

Should build stage be in Dockerfile?

I personally put build stage in Dockerfile. (Using multi-stage feature in Dockerfile) But in my company, we have dev containers where all dependencies are installed and managed. So in our product's ...
Guest-01's user avatar
  • 121
0 votes
1 answer
254 views

Should I create a docker image for production from my dev environment?

A few years ago, I wrote a simple web application in PHP without a database. Until now, it was running on a basic Apache server. I'm not a professional developer; I'm more on the system side. I haven'...
Pozinux's user avatar
  • 109
0 votes
0 answers
61 views

How should I organize build instructions for third-party packages?

In my projects I have several third-party Python packages which I need to build from source (because there are no .whl packages published for the versions+platforms I need). Currently these packages ...
oliver's user avatar
  • 111
2 votes
1 answer
145 views

web-dev: how to restrict access to costly backend API to authenticated clients only

I've created a small prototype browser plugin and am now thinking about making it accessible to the public. This brings up an important question about gatekeeping API access and the right way to ...
lhk's user avatar
  • 446
3 votes
3 answers
623 views

What exactly is a REST API in reference to Docker?

AFAIK, APIs are a means by which two computers communicate with each other. What exactly is REST API? My confusion arises from this figure where a docker cli which is on the same host as the docker ...
zeeshanseikh's user avatar
0 votes
0 answers
87 views

Data producers and consumers: How to connect MySQL with microservices?

Consider a web-app with 5 micro-services deployed with Docker, and a MySQL container dedicated to storing data produced from other services (shared-database pattern). How should I make the connection ...
JrCaspian's user avatar
  • 125
0 votes
1 answer
600 views

I want my Docker container to use more of the host's CPU resources

I have a DigitalOcean droplet on which I have deployed a Docker container (Docker version: 20.10.14), but my app is sometimes slow, therefore I would like to allocate more resources to it. The droplet ...
samdouble's user avatar
  • 243
2 votes
1 answer
3k views

How should I handle docker containers and SSL certificates

Background We have a number of backend api's that do work; some connect to equipment, some store data, etc. The original setup was each service was a native c# asp.net 6 minimal api running on a ...
Felix Castor's user avatar
-1 votes
1 answer
755 views

What is the recommended approach for loading a Java Keystore from memory in a SpringBoot application running in a Docker container?

I am looking for a solution to load a Java Keystore dynamically from memory instead of from a file on disk. Can you suggest any libraries or best practices for this scenario in the context of Java, ...
goodspeed's user avatar
  • 167
1 vote
4 answers
305 views

Storing both a compiled service for a Docker container as well as the container in a repository. Good practice, bad practice or no precedent?

This has erupted from quite a turbulent meeting between two senior developers, a lead developer and an engineering lead, and after 90mins reached no resolution. We create Spring Boot Java services ...
Crazy Dino's user avatar
3 votes
0 answers
76 views

Confused about how to test Python scripts that install and configure a development setup on OSX (VMware? Docker-OSX?)

In my company we hire engineers for various "disciplines"—iOS, Android, Web, Backend, Data, etc. Engineers follow an onboarding workbook to install what they need for their discipline. iOS ...
Andrew Cheong's user avatar
0 votes
1 answer
115 views

Data autonomy using files in a micro service application

We are rebuilding an on premise application using microservices and are wondering how to implement data autonomy given certain constraints that we are facing: The application is built around a set of ...
Q-bertsuit's user avatar
0 votes
1 answer
399 views

Any way to forward an auth session from OAuth system to another system (with API key)?

Description This is a long shot, but I'm in dire need of advice. If you know of a more appropriate forum for this type of question please share! I'm working with a legacy OAuth system using email + ...
cjhines's user avatar
0 votes
2 answers
454 views

What is the computational overhead when running a relational database in several docker services instead of a single instance?

I want to move my current relational database installation into a docker container or a set of a docker containers. I have a web server with an associated relational database. I provide a set of 40 ...
A.Dumas's user avatar
  • 262
0 votes
1 answer
44 views

How to check for docker specific code and APIs in an application for later migration to containerd?

So I have a couple of Java RESTful microservices, and since the past few years I have basically been using Docker to build them and deploy them over to a Kubernetes cluster. Our team is upgrading ...
Palaash Atri's user avatar
-1 votes
1 answer
286 views

Best Practices to Deploy Docker on DigitalOcean using Terraform [closed]

I'm wondering if there are some best practices to deploy Docker images to Digital Ocean using Terraform. Because I don't expect much load and don't need failover features etc. I'm not aiming to deploy ...
Sebastian Sommerfeld's user avatar
0 votes
2 answers
65 views

Is it safe for container orchestration to replace unhealthy containers?

I'm new to docker and I'm reading a book which says: Docker can't safely replaced an unhealthy container. Docker could remove that container and start a new one from the same setup, but maybe your ...
slowjams's user avatar
  • 127
1 vote
2 answers
227 views

How to develop using a microservices architecture knowing services should not share data?

I currently have a monolithic web application. Some API calls need a lot of processing resources and I would like to take that part out of my "backend" monolith and put it in its own service....
samdouble's user avatar
  • 243
0 votes
3 answers
949 views

Improve CI process by testing against docker image and fail docker build if test fails

Our CI process goes as this cycle (I think it is quite normal), unit test => build docker image => run function test against the image => if test fails remove the failed docker image, figure ...
Qiulang 邱朗's user avatar
0 votes
0 answers
220 views

Managing concurrent TCP connections with Go, Docker and Kubernetes

I need to consume several APIs concurrently. In order to do that I decided to containerize each API client code and manage them using Kubernetes. Some of those APIs need to be "walked". They ...
beardeadclown's user avatar
0 votes
1 answer
89 views

Best practices for seperating/designing classes and methods for use in testing

I run unit and integration tests on my system. These create, start, stop and delete Docker containers. I want the exact same state in my Docker environment at the end of the tests as I had at the ...
slashleo's user avatar
1 vote
3 answers
708 views

How do I make sure a task run only once in a dockerized environment?

I have a task that I need to make sure it only runs once in my dockerized environment (managed by k8s), running the post-upgrade script is one example. Because each dockerized app can run the task and ...
Qiulang 邱朗's user avatar
-1 votes
2 answers
111 views

Are there any advantages to using dockerfile dependencies over virtual environment for Python apps?

I am currently working solo on a very small simple python microservice. I started building this app, mostly by habit, in a virtual environment. As I started to get closer to the point where deployment ...
Nate T's user avatar
  • 125
-1 votes
1 answer
1k views

How to run and manage multiple instances of an application (different start params) on multiple servers? [closed]

Our main (C#) application: takes in parameters and starts working (batch processing, takes anywhere from minutes to hours) up to x instances of said application per server instances are started by ...
Paul's user avatar
  • 21
1 vote
3 answers
2k views

Clarifying the steps in a CI/CD, but namely if if unit testing should be done building a Docker image or before

I'm building at a Build and Deployment pipeline and looking for clarification on a couple points. In addition, I'm trying to implement Trunk Based Development with short-lived branches. The process I ...
strumpy_strudel's user avatar
0 votes
0 answers
132 views

Fill Docker Container from existing remote database

I do have n nodes managed by Kubernetes, all of them running several containers. A container may contain a database alongside with an application. As containers should be stateless, all data within ...
Bin4ry's user avatar
  • 101
0 votes
0 answers
382 views

HTTPS headless browser to HTTP localhost Flask

I have two Docker containers: Headless browser grabbing images by running JavaScript Flask server analysing these images (and sending results to another server) I'm using a bridge network to ...
Sijmen's user avatar
  • 9
1 vote
1 answer
128 views

Design help for web application that will run as separate instances with different content

I've built an RSVP web application with a React front end, Node.js backend, NGINX webserver, SQL database and hosted on a DigitalOcean Droplet with Ubuntu. The issue is, every time I want to launch ...
Sal's user avatar
  • 121
9 votes
2 answers
6k views

Should Docker be used in a Windows Production environment?

As my team's microservice architecture grows, as does the pain of manually deploying each individual service in the application. I've played with Docker before and am now learning to leverage the ...
Kurtis Jungersen's user avatar
2 votes
0 answers
54 views

Communicate with multiclient applications

I have a 3rd party application. Basically I need to run one instance of that application for a one user. For 10 users I have to run 10 instances. From my API I want to communicate with a specific ...
Fast Snail's user avatar
2 votes
0 answers
497 views

Determining when to use Serverless vs Containerized application (AWS Lambda vs ECS) - Is Java Spring dead?

I work for an organization that heavily leverages AWS. There is a strong push that every team move from containers deployed on ECS to leverage AWS Lambda and step functions for (almost) every project....
greenJavaDev's user avatar
8 votes
9 answers
812 views

Would we need Docker if applications were better behaved?

A well-written program will be configurable. It will have a configuration file or database which specifies where to look for files, which network ports to open etc. An Operating System lets many ...
Kári Harðarson's user avatar
4 votes
2 answers
3k views

What's the best way to get GitLab Docker runners and Python tox to work together?

I'm trying to get a better understanding of how tox and GitLab CI (with docker runners) would work together, as they seem to have a bit of overlap in what each does. I think I may be missing something ...
Garrett Motzner's user avatar
1 vote
1 answer
2k views

Best practice for config files in containerized apps

The suggested file structure for docker container is something like root ├── app/ | ├── ... | └── Dockerfile | ├── db/ | ├── ... | └── Dockerfile ... └── docker-compose.yaml So where ...
Felix B.'s user avatar
  • 133
1 vote
0 answers
55 views

What is the recommended way to start a long-running containerized analysis in R from NodeJS?

I have a frontend through which users can submit analysis requests, which are inserted into a database. These analysis requests are received in a NodeJS server using Postgres notify/listen. Using ...
Chintan Pathak's user avatar
-1 votes
1 answer
179 views

Show a service's status to the user

Some design thoughts on an application that is mostly event driven using kubernetes and docker. The application is a web based application, a single page one. It shows updates from the back-end such ...
ring bearer's user avatar
-2 votes
2 answers
226 views

Testable architecture of micro-services

Into: There are mutliple ways to test code: unit tests /e2e / manual testing /.. I'm developing a project that it's implementation details changes very quickly (and sometimes the core functions as ...
Stav Alfi's user avatar
  • 297
1 vote
0 answers
675 views

Approach to setup multi-tenant RabbitMQ workers in Python

I'm migrating my current application to multi-tenant setup. Now I've multiple rabbitmq workers to process async job, publish and consume integration events, and other stuffs. I'm planning to use ...
Rohit Jain's user avatar
1 vote
1 answer
84 views

Scraper in separate repo from visualization component?

Let me explain my thoughts about architecture of the project I'm working on. The project code repository consist of: Scrapy component - of course it serves to scrape data, process it and calculate ...
Bob's user avatar
  • 13
-4 votes
1 answer
17 views

Components dependency check

Lets say you have 2 docker stacks: stack-A.yml defines serviceA and stack-B.yml defines serviceB; you also have an archive of common data that will be mounted by services. How could I verify that ...
Marco Stramezzi's user avatar
45 votes
5 answers
18k views

What is the difference between a library and a dependency?

In this docker beginner video its explained, that different stacks may depend on different libraries and dependencies and that this can be handled with Docker. However, I don't get what the ...
Adam's user avatar
  • 577
0 votes
1 answer
85 views

Docker swarm update through Continuous Deployment

I need a clarification about the correct process to use a CD to update an environment where a Docker Swarm runs. I understood that I can configure my CD to execute docker service update --image foo:1....
Marco Stramezzi's user avatar
14 votes
5 answers
6k views

Docker: One container per database?

I am currently researching approaches for moving our application to Docker containers and stumbled upon a question to which I could not find a clear answer. Our application has several separate ...
chrischu's user avatar
  • 248
0 votes
1 answer
234 views

Is it considered a good practice to hardcode package versions in something as high-level as a Dockerfile?

We had an application break in production during a deployment because a load-balancer package in our top-level Dockerfile had pulled its latest version, which happened to have a new API. Our app broke ...
Reverse Engineered's user avatar
0 votes
1 answer
588 views

What's a good liveness probe for a Hangfire background job server?

We're in the process of moving everything to K8s and one of our applications is a small .NET Core 2.2 console app that runs a Hangfire background job server. At the moment the app runs as a Windows ...
Cristi's user avatar
  • 187
1 vote
3 answers
782 views

Why should I use containers instead of deploying build artifacts directly to Azure App Services or AWS Elastic Beanstalk?

Recently, I have been told by others to look into containerization of my stateless web applications (in this case .NET Core 2.x and 3.1). All of my dependencies are retrieved from public and private ...
Kyle J V's user avatar
  • 226
7 votes
1 answer
5k views

Are Docker images tied to CPU architectures?

Linux Onlyoffice Docker scripts are available for download. Are docker containers tied to a particular CPU architecture (IA64 vs ARM)? I would like to run Onlyoffice on an ARM platform (Raspbery Pi 4 ...
gatorback's user avatar
  • 217
-1 votes
1 answer
152 views

Containers Across Operating systems

Curious how containers are portable across development/testing/cloud environments with no worry needed about the underlying infrastructure. Does the Docker Engine essentially standardize operating ...
CloudQuestions's user avatar
2 votes
1 answer
506 views

At what point does a microservices architecture become "worth it" vs. a monolithic ASP.NET web application?

I'm the maintainer of an ASP.NET WebForms application and am contemplating a refresh of the application in order to eliminate dependency on some legacy libraries, add some features, fix some areas ...
Matt's user avatar
  • 2,232