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
0 votes
0 answers
52 views

How to ship software to Windows and Linux users built on Docker [closed]

My application is a bunch of docker containers networked together using docker compose. Now I want to ship this entire stack as an easily runnable application to my users, who are either on Linux or ...
user avatar
0 votes
2 answers
43 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 ...
user avatar
  • 127
1 vote
2 answers
128 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....
user avatar
  • 169
0 votes
3 answers
89 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 ...
user avatar
0 votes
0 answers
50 views

Scaling Docker Containers Question with .Net Core Worker Services

I have a fairly what I think is simple question but am completely unfamiliar with design considerations when using docker containers. So I have been trying to come up with a structure for an app that ...
user avatar
  • 101
0 votes
0 answers
42 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 ...
user avatar
0 votes
1 answer
81 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 ...
user avatar
0 votes
0 answers
27 views

Securing a Kubernetes application - SSL on Kubernetes or container?

I have a gRPC server written in golang and containerized with Docker. I would like to deploy this application to Kubernetes with TLS (Let's Encrypt). What is the best way to secure the application? I'...
user avatar
  • 141
1 vote
3 answers
180 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 ...
user avatar
-1 votes
2 answers
85 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 ...
user avatar
  • 115
-1 votes
1 answer
323 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 ...
user avatar
  • 21
1 vote
3 answers
409 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 ...
user avatar
  • 121
0 votes
0 answers
91 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 ...
user avatar
  • 101
0 votes
0 answers
93 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 ...
user avatar
  • 9
1 vote
1 answer
63 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 ...
user avatar
  • 121
5 votes
2 answers
1k 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 ...
user avatar
2 votes
0 answers
48 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 ...
user avatar
2 votes
0 answers
172 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....
user avatar
8 votes
9 answers
724 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 ...
user avatar
3 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
473 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 ...
user avatar
  • 123
1 vote
0 answers
47 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 ...
user avatar
-1 votes
1 answer
48 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 ...
user avatar
-2 votes
2 answers
188 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 ...
user avatar
  • 267
1 vote
0 answers
423 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 ...
user avatar
1 vote
1 answer
56 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 ...
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 ...
user avatar
44 votes
5 answers
12k 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 ...
user avatar
  • 567
0 votes
1 answer
54 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....
user avatar
11 votes
5 answers
4k 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 ...
user avatar
  • 218
0 votes
1 answer
113 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 ...
user avatar
0 votes
1 answer
347 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 ...
user avatar
  • 167
1 vote
2 answers
493 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 ...
user avatar
  • 226
5 votes
1 answer
2k 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 ...
user avatar
  • 197
-1 votes
1 answer
88 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 ...
user avatar
2 votes
1 answer
364 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 ...
user avatar
  • 2,232
4 votes
3 answers
3k views

Does each microservice need its own server running (Tomcat, docker container)

In development I have a Java backend API which I'm running with Tomcat. I'm wanting to wrap the backend in a docker container and deploy to an AWS EC2 instance, and be able to scale up/down. Does ...
user avatar
  • 287
0 votes
2 answers
130 views

Microservices: how far should coupling / decoupling of application parts relying on the same data backends go?

I am in the process of migrating a pretty much monolithic PHP application to microservices. With the development pipeline, docker containerisation, CI/CD and scalability in mind, what would be the ...
user avatar
  • 133
1 vote
1 answer
250 views

Build docker images for GUI applications in Linux

Currently I'm building GUI applications for Linux and they have many dependencies( We ship Raspberry Pi devices with the executable installed on each device). My idea is to create a docker image for ...
user avatar
4 votes
1 answer
222 views

Pub-Sub pattern and instance replication

I am porting an event-driven architecture to a container environment (Docker) and I wonder how to take advantage of replication while using pub-sub: if I just increment replicas I end up with many ...
user avatar
2 votes
1 answer
245 views

How to handle patch version bumps for docker images when the software itself is unchanged?

Let's say I'm maintaining a piece of software that I version following the semver spec. I am also maintaining a docker image for said software, tagged with version tags. What do I do if I need to ...
user avatar
  • 1,281
0 votes
1 answer
102 views

Would you lose any benefits of docker if the docker service ceased to be a daemon?

This author writes about alternatives to docker, such as Podman, Buildah and Skopeo. In addition you can run docker images without the Docker Daemon using nspawn. But I want to run docker-compose ...
user avatar
  • 4,761
0 votes
0 answers
595 views

Jenkins Docker image, to use bind mounts or not?

I am reading through this bit of the Jenkins Docker README and there seems to be a section that contradicts itself from my current understanding. https://github.com/jenkinsci/docker/blob/master/README....
user avatar
-1 votes
1 answer
49 views

What happens to network connections to the web app running in a pod, when a pod is down in a Kubernetes node?

Each pod represents single instance of the web application in a node of Kubernetes. Lets say 100 users are signed into a web app like Stackoverflow and connected to Pod1 of NodeA. Pod1 is down now. ...
user avatar
  • 101
-4 votes
1 answer
112 views

How was industry dealing with containerizations and container orchestration before Docker and Kubernetes? [closed]

Before Kafka, we had RabbitMQ, ActiveMQ etc. Mostly there use to be a something before version, in technology. But What was industry using something similar to Docker and Kubernetes, before they ...
user avatar
  • 101
-1 votes
1 answer
142 views

OS tax in dockerized production environment

I am reading Docker deep dive since I am interested in this shiny technology. I can read: The VM model then carves low-level hardware resources into VMs. Each VM is a software construct ...
user avatar
7 votes
3 answers
4k views

Different Redis instances for different microservices?

Say that we have Kubernetes running with n pods, each being a separate microservice. Now, some of those services need a caching layer. When we take into consideration: the fact that Redis was tested ...
user avatar
2 votes
1 answer
707 views

Broadcast a message to all container replicas

I have two web services, one of which creates resources on disk for the other one to read and process. The resources are subject to irregular change, so I'd like to inform the consumer service when a ...
user avatar
  • 327
0 votes
1 answer
74 views

Can Kubernetes help with providing more processing power for the same request?

I am fairly new to Docker and Kubernetes and I have a question for which I could not figure out the answer myself. I am working on an application that does string matching on data extracted from ...
user avatar
1 vote
0 answers
58 views

Dynamically start containers to isolate code compilation / running

I'm building a system where I need to measure certain algorithms, which are written by the end users. Obviously running external code is a huge security risk, therefore it needs to be isolated. The ...
user avatar