Questions tagged [docker]
Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application.
126
questions
2
votes
1
answer
731
views
Approach to software testing with docker
When discussing the testing approach, we had disagreements.
We develop software that we package into an image and distribute. We have two suggestions for testing:
Build a separate image with a test ...
-2
votes
1
answer
133
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 ...
0
votes
1
answer
152
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 ...
0
votes
1
answer
311
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'...
0
votes
0
answers
65
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 ...
2
votes
1
answer
164
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 ...
3
votes
3
answers
642
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 ...
0
votes
0
answers
96
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 ...
0
votes
1
answer
785
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 ...
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 ...
-1
votes
1
answer
876
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, ...
1
vote
4
answers
323
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 ...
3
votes
0
answers
77
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 ...
0
votes
1
answer
119
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 ...
0
votes
1
answer
471
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 + ...
0
votes
2
answers
533
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 ...
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 ...
-1
votes
1
answer
317
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 ...
0
votes
2
answers
66
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 ...
1
vote
2
answers
243
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....
0
votes
3
answers
1k
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 ...
0
votes
0
answers
260
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 ...
0
votes
1
answer
90
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 ...
1
vote
3
answers
816
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 ...
-1
votes
2
answers
120
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 ...
-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 ...
2
votes
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 ...
0
votes
0
answers
146
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 ...
0
votes
0
answers
419
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 ...
1
vote
1
answer
161
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 ...
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 ...
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 ...
2
votes
0
answers
522
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....
8
votes
9
answers
826
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 ...
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 ...
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 ...
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 ...
-1
votes
1
answer
196
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 ...
-2
votes
2
answers
231
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 ...
1
vote
0
answers
709
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 ...
1
vote
1
answer
89
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 ...
-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 ...
45
votes
5
answers
19k
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 ...
0
votes
1
answer
95
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....
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 ...
0
votes
1
answer
257
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 ...
0
votes
1
answer
636
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 ...
1
vote
3
answers
882
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 ...
8
votes
1
answer
6k
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 ...
-1
votes
1
answer
161
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 ...