Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [docker]

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

-1
votes
0answers
5 views

Is using LGPL 1.2 or EPL 1.0 licensed jar allowed in proprietary software in Docker? [migrated]

I am creating a proprietary java application which uses some open source jars licensed with LGPL 2.1 or EPL 1.0. I am deploying the application in docker container with all jars inside it. Is there ...
0
votes
1answer
29 views

Any patterns for extracting tooling from multiple repositories?

I'm working on a project where an increasing number of small mini apps all share nearly the same tooling - makefiles, dockerfiles, jenkinsfiles and webpack configs, along with a couple of scripts, are ...
-1
votes
1answer
35 views

How do I test my python package (for distributing) for different versions of python?

I have made a small library/application that I intend to distribute. However I want to find out what versions of python can handle my script ? Given that there are many minor and micro versions and ...
1
vote
1answer
186 views

Why place Composer in separate docker container?

Note: this question is not strictly PHP-oriented, since both Docker and Composer can be easily used outside of the PHP ecosystem (although such cases would be rather rare IMO). In one of the projects ...
0
votes
0answers
87 views

Install another OS in docker container?

Learning docker concepts and tried few hello world. Came up with below questiob which I could not find on google. Say I am on Linux box. I want to to install and run windows (along with java, tomcat)...
2
votes
1answer
256 views

Best practices for Docker image node version and .nvmrc

If I'm building microservices using Node on Docker images - it's necessary to keep an idea of what version of Node I'm using. The idea is - I'm going to be running Node locally in development - and ...
0
votes
1answer
47 views

How can I keep a web application easy to self host while still breaking it up in to multiple smaller components

I am working on an open source web application that I will be hosting on my own server and I estimate most users will use that but I also want to easily allow users to run the application themself. ...
4
votes
1answer
232 views

Managing private NPM packages and CI/CD

At work we have an application that is run directly on dev machines, but deployed to Docker swarms (a QA swarm and production swarm). The code and CI/CD pipelines are all in GitLab CE. It uses ...
1
vote
2answers
232 views

Developing and debugging microservices locally

The use case: I am working on a microservice based architecture and I am wondering how I am supposed to debug a microservice (with my IDE attached to it) on my local machine where I develop it. The ...
0
votes
0answers
113 views

How to scale Redis pub/sub within a Docker stack, or should I decouple it?

I'm creating a simple websocket server in nodejs that uses Redis pub/sub as a messaging backplane and Mongo for some data storage. I would like to deploy this as a Docker service so we can scale it ...
2
votes
2answers
181 views

Synchronise work across docker containers in a queue

I have a rather simple (i thought) setup that causes me some grief. I am using a queueing system (AWS SQS) and a few worker docker containers with code written in .net core that pull from a queue and ...
4
votes
2answers
58 views

Efficiency of horizontal scaling when Multiple Deployment of same container on a single Host

Do we get efficiency in terms of load handling when the same container (in this case the container has a apache server and a php application) is deployed 5 or more times (i.e. 5 or more containers are ...
1
vote
1answer
400 views

Do I need to secure communications between microservices in a cluster?

So, let's say I have a standard set up for application, that is: - split into micro services - and is running in a cluster (kubernetes or docker swarm, I guess specific implementation does not matter, ...
0
votes
1answer
153 views

Make Docker-based SPA configurable

I have a single page app (Vue JS) that is built and released as docker image. The docker image is based on the official Nginx Docker image and serves the SPA as static content. Until now, there was ...
2
votes
1answer
89 views

Docker and GPU-based computations. Feasible? [closed]

Recently I ran against this question and this Nvidia-docker project, which is an Nvidia Docker implementation and it made me wondering where, why and how this scheme makes sense? I found out some ...
4
votes
1answer
325 views

What are the advantages running a local docker registry?

I do not have production experience with docker and have several questions regarding a local registry: A dockerfile is the description (=recipe) of how an image is built(=cooked, e.g. FROM alpine:3....
1
vote
1answer
109 views

Should I containerize Python 'job' scripts?

We have a python scheduling solution which, at the moment dynamically loads python modules to run each job in a separate process. The jobs are pretty heavy containing some Tensorflow models which ...
0
votes
0answers
23 views

what are the best ways to create shell compartments for each users

This is a question I am trying to figure out, before I jump into my task. I am trying to create an environment, where each user will have a shell associated to them. They can run their individual ...
0
votes
1answer
450 views

Building docker images in Gitlab CI and pushing to AWS ECR.

I want to do something fairly simply in my Gitlab CI pipeline - I want to build the docker image and push it to an AWS ECR repo. I've looked at this Gitlab CI guide and one of the suggestions it ...
0
votes
1answer
71 views

Using mysql's\mariadb's root user for development on a docker development environent running multiple application instances

I have setup a docker-based development environment having the following images as you can see in docker-compose.yml: version: '2' services: phpBB_dev: build: context: . dockerfile: ...
1
vote
1answer
51 views

Should I put docker commands in my package.json?

I'm currently working on getting a good workflow going on, from development to a kubernetes deployment on cloud platform. I'm pretty comfortable with various docker commands, but rewriting long ...
6
votes
1answer
1k views

best way to install local package into docker image

I have a python package that I wrote and I want to use it within multiple docker builds. However, I can't just install my local package situated outside of Dockerfile folder. And I don't want to ...
6
votes
1answer
511 views

Is mocking microservices a thing?

I'm trying to get my head around a the development workflow for working with microservices and docker multicontainer applications. The thing that I'm particularly trying to solve - is getting a good ...
0
votes
0answers
318 views

How should a multi-container docker application be structured?

Say I have a fairly standard web app, I might have three containers to start: A static frontend (say an nginx server) A backend API server (say node) A database (say a mongo image) The question I ...
7
votes
2answers
3k views

Should I include tests in Docker image?

When it comes to tests, I can think of two options: Put both test and application in one image. Include only application code in the image. Create a test-specific container that builds after the ...
1
vote
2answers
1k views

How to build a scalable, containerizable and manageable API with GraphQL, Kafka, Docker, Kubernetes and MongoDB?

I have no doubt regarding what each of the technology does. I have tried all of them as well. What I have doubt with is: In case we use GraphQL, wont it act like a single point of failure if the ...
0
votes
2answers
257 views

Should Java (fat) JARs be published before containerization?

There doesn't seem to be a lot of literature around the best practices when it comes to containerization of Java applications and I'm curious as to what the logical approaches are. It used to be that ...
-1
votes
1answer
510 views

What is the recommended way to storage documents as Microservice / API?

I'am new in Microservices, and this is the scenario. Background: I have an Web Application that requires store and retrieve files and let's say that i need to storage documents (PDFs, Word Documents,...
0
votes
1answer
412 views

Nginx for exposing Docker Swarm services to the Internet?

I'm involved in the development of an enterprise web application whose functionality is separated into microservices deployed in a Docker Swarm. In order to expose these microservices to the Internet ...
1
vote
1answer
254 views

Where to place Docker-related configuration files

Many projects need more than a Dockerfile or a docker-compose.yml in their root to work out of the box (e.g. for local development or a demo): For example a web application might need its runtime, a ...
6
votes
1answer
4k views

Building C++ apps with Docker: how to deal with dynamic linking?

I have a C++ project, cloned from GitHub, which I'd like to build with a Docker image (a customized Debian stable). The image contains the usual tools for compiling C++ apps plus all the dependencies ...
1
vote
1answer
159 views

Using docker as temporary RAM

Scenario: I am designing a system where user uploads a structured data file ~0-5GB in size. I need to let user analyze this file and perform some transformations on the file which essentially means ...
1
vote
2answers
133 views

Is there an intermediate computing model between docker containers and xen hypervisors?

Docker is amazing. You can use it to replicate production and all its quirks on your local machine. Then you can deploy that instance straight through all the staging workflows super-quick. Ie your ...
8
votes
3answers
952 views

Are there benefits to running my development environment in a Docker container?

I develop primarily using Visual Studio on Windows. The problem is that after a while Windows gets bogged down and I'm faced with needing to reinstall Windows. Similarly switching to new machines is ...
8
votes
1answer
506 views

What are the reasons to use docker in your software development process if you're not using it in production?

Docker has a lot of potential to solve problems in my workplace in a large team (100) of software developers and it's use to solve problems in my workplace. This includes: Having a cluster of Docker ...
52
votes
4answers
7k views

Are the development benefits of using Docker negated when using Java compared to other languages closer to Unix binaries?

I had a friend who said: Docker is amazing. You can use it to replicate production and all its quirks on your local machine. Then you can deploy that instance straight through all the staging ...
4
votes
1answer
370 views

How to set up a recurring job server in a Kubernetes cluster

My current task is to set up a system that pushes out notifications to specific users based on a set schedule. Having tackled the push notifications issue, I am now trying to put together a system ...
0
votes
1answer
697 views

Design and setup a centralized logging with microservices / docker

I am developing on a a large webapp system that has multiple docker containers. Imagine a webapp but with many external restful services running on different containers. A microservices setup. I ...
4
votes
2answers
152 views

Are there worthwhile advantages to creating a separate docker container to handle http?

I've got a Python webapp running in docker container and a DB container/service, and I'm wondering if the apache/mod_wsgi functionality should be contained within the container that runs the python ...
2
votes
1answer
345 views

Splitting application code and docker deployment files

I am beginning the process of moving my django stack to docker containers. Most examples I have seen put the Dockerfile and docker-compose.yml files in the same repository as the application source ...
0
votes
1answer
106 views

Controlling the Data of a Database Docker Container

I'm new to Docker and containers in general, and was wondering if: this approach is possible, and are there better/more-proven approaches I have a "Command Central" web app that's responsible for ...
3
votes
1answer
800 views

How should I run multiple instances of my Docker project on one server?

I have built a blogging application, running in several containers that are managed with docker-compose. Now I'm wondering - how does one run multiple instances of such application on one server? I'...
6
votes
1answer
5k views

How to wait for the execution of method and then exit?

I have a console application (dotnet core, ubuntu), that looks like following: void Main() { try { var job = new Job(); job.Start(); while(Console.ReadLine() != "quit"...
3
votes
1answer
610 views

Recommended way to organize and build multiple services for App Engine Flexible Environment with custom runtime

When deploying to Flexible Environment using the default runtime (e.g. python), we just need to specify different app.yaml files with different entrypoint: values. But what would the 'best practice' ...
6
votes
4answers
532 views

Is there a better way to break Java services down into containers

I'd like to decompose a number of Java REST services (WAR files) into individual container-ised "MicroServices" - so that I can scale services ondemand, insulate the applications, have loose couplings,...
4
votes
1answer
292 views

How to Implement Service Discovery for External Docker Swarm Clients

I have a question regarding a specific case with our product. Let's say I have two services; Service A and Service B. (The number of services varies from an installation to installation). They are ...
4
votes
2answers
2k views

How to properly create a local development environment based on a Docker based micro-service architecture?

So currently where I work we try to mimic our production environment as close as possible to our production environment. Our micro-services (APIs, listeners, data stores) are organized in the fashion ...
3
votes
2answers
643 views

Two processes in a single docker container or two services connecting to the same db?

I recently started moving a monolithic application to microservices architecture using docker containers. The general idea of the app is: scraping data -> format the data -> save the data to MySQL -...
-3
votes
2answers
2k views

How to use Python to start up multiple programs simultaneously?

I am attempting to write a python script that with remove some of the tedium of my everyday actions. Specifically, I always need to run Eclipse, Java VisualVM, and a docker container. I had planned ...
1
vote
1answer
482 views

Docker for fullstack developer [closed]

As Docker became a very popular tool I read a lot of information about it but I can't get - do I need it as single full-stack developer? I develop web application that has 2 backend services written ...