Questions tagged [containers]
A container is a class, a data structure, or an abstract data type whose instances are collections of other objects. Containers typically make use of generics or templates so that a wide variety of objects can be added.
9,928
questions
0
votes
0
answers
7
views
lanching desktop application in containers and making them accessible like services using kubernetes and xorg
in a school project, we've been asked to solve the following problem:
our students use some sofwares (desktop application )for thier studies like packet-tracer,
eclipseIDE, qjis etc..
and they may ...
0
votes
1
answer
15
views
docker desktop use container network alias as environment var for another container
Getting up to speed with Docker, and I'm stuck trying to pass the network identity (ip + port) of one container as an environment variable to another. I'm using Docker Desktop and running each ...
0
votes
0
answers
24
views
container mount success, but directorys are not the same
I create a container with the following command. Docker inspect shows the mounts are success.
But actually the contents in the directories in host and container are not the same.
I have tried to mount ...
-1
votes
0
answers
18
views
Ways to add Image tag to a container image
I'm working with Azure pipelines to build and push container images.
The pipeline is triggered when there is a commit in the branch, so then the pipeline starts the process...
as the process is ...
-1
votes
0
answers
27
views
Spring boot image container running in minikube not giving proper response
I am using a minikube from powershell (minikube start)
I can do all the things successfully like creating the image of my spring boot rest API. Creating the container of it, all the things are working ...
0
votes
1
answer
28
views
Container volume not mounting to local path
Python Code:
with open("/var/lib/TestingVolume.txt", "r") as outFile:
data = outFile.read()
with open("/var/lib/TestingVolume.txt", "w") as outFile:
...
0
votes
0
answers
12
views
How containerd copy a file from host to a running container?
I find that I can use ctr snapshot mount to copy a file from a container to a host.
But how can I copy a file from a host to the container using containerd?
I used golang to write some code to start a ...
0
votes
0
answers
13
views
Not able to create a docker image for splash scrapy app python?
I am using scrapy-splash to rendering javascript in web scrapping. So, splash run in a separate container. see here https://splash.readthedocs.io/en/latest/install.html
Now, I want to create the ...
0
votes
0
answers
14
views
How to store nextcloud docker files inside my hdd rather than in a image of docker
I am actually relatively new to docker and wanted to build a home server for files, I use windows 10, and Docker Desktop for deploying containers.
whenever I store my files on nextcloud I do not see ...
0
votes
1
answer
13
views
how to run docker container with external application properties file?
How to run docker containers with external application properties files? & how to add properties file into the docker volume ? how to mount the volume with another container?.
0
votes
1
answer
33
views
How to run bash file in Dockerfile?
Im trying to execute bash file called start.bash by CMD["bash" ,"start.bash"] in Dockerfile. When I create the image this command is not executed for some reason even though the ...
0
votes
0
answers
5
views
How to keep proxmox VM / CT up and runnig after a cluster node goes down in HA Cluster without VM/CT access loss even one second?
i've just configured proxmox HA cluster / Ceph(Monitor, Manager, OSD) with 3 nodes.
After a node goes down, the VM /CT switches perfectly to another node of the cluster. But the problem is that it ...
0
votes
0
answers
18
views
Terraform container - /usr/bin/git exited with 128: fatal: unsafe repository ('/path' is owned by someone else) when checking out registry modules
I am trying to checkout registry modules with terraform.
I am using a terragrunt container and getting the following error when I use a module that is pulling from github.
/usr/bin/git exited with ...
0
votes
1
answer
27
views
Azure Container Registry (ACR) Run vs Azure Container Instance (ACI) Create
While studying for the AZ-204 certification, I found myself in a question related to two commands.
Azure Container Registry (ACR)
Run the sample/hello-world:v1 container image from your container ...
0
votes
0
answers
11
views
Docker python: can't open file '//api.py': [Errno 2] No such file or directory
I am using docker with two containers. One for html and the other one for my fastapi.
When I want to compose my docker, the html container works well but for composing fastapi app, I receive this ...
0
votes
0
answers
26
views
How to use an Apache OpenOffice container
I'm quite new to Docker and containers. I've just created an Apache OpenOffice container, and got it running on my local. Now I would like to use it, but I am not really finding any ways to do that. ...
0
votes
0
answers
16
views
Why doesn't my browser refresh when the Nuxt.js dev server recompiles my code?
I am working in a CentOS 7 VM (VirtualBox, host is Windows 10) and my working directory is a shared folder.
I have created a node container to develop a Nuxt.js app with the following command:
docker ...
0
votes
0
answers
8
views
How to monitor system calls issued in a Docker container? [closed]
Note that the container can also be a Mac or Windows container. I believe this can be achieved with eBPF(at least for Linux). But I haven't been able to figure that out yet.
0
votes
1
answer
22
views
Best way to run volatile containers on Google Cloud
I have scripts that collect data all the time on Google Cloud VMs, but there are times when I have more or less data to collect, so I need to volatile and automatically allocate CPU and memory so I ...
0
votes
2
answers
32
views
Is it a good practice to have the database within the same container as the app?
We have several sites running under a CMS using virtual machines. Basically we have three VM running the CMS and a SQL instance to store data. We plan to transition to containers, but to be honest I'm ...
0
votes
1
answer
24
views
Facing issue while installing windows server 2022 and visual studio 2022 into images can not able test MSTest
Facing issue while installing windows server 2022 and visual studio 2022 in container
I am using the below Dokerfile
# escape=`
# Use the latest Windows Server Core 2019 image.
FROM mcr.microsoft.com/...
0
votes
1
answer
48
views
C++ Iterators that work for both std::vector and std::map
I need to implement something and it would be much easier if I could create, for example, an iterator that works both for std::vector and std::map. Is that possible? I'm talking about the iterators ...
0
votes
0
answers
5
views
Remove dependancies from package.json when building a docker image
So I have an express / nodejs web server, that I can run two ways:
run it as a desktop electron app based web server, so we can run it in offline environments
Build it into an image that runs as a ...
0
votes
1
answer
35
views
.net core authentication not working after deployment on server
I can't login to my web application after deploying it to a server, it's running inside a docker container, everything works properly on my local machine, with docker or without docker
On the server, ...
4
votes
2
answers
104
views
+100
k8s how to exec to distroless container
I want to delete a specific file from a cronJob to the following container, the problem is that when I run exec I got error, how can I exec to distroless container (k8s v1.22.5) and delte the file ...
0
votes
0
answers
14
views
expose documents from iOS App Group Container in Files app
My iOS app and its extension successfully share files locally through an app-group container. The app also exposes files in the Documents folder of its app container to the Files app, after setting ...
0
votes
0
answers
6
views
Stop draggable container-fluid moving under browser toolbars
I have a container-fluid window which is draggable. How when it is being dragged around the screen do I stop it going under the Internet browser window toolbars? If the user lets go of the container-...
0
votes
1
answer
22
views
jquery close X on a container-fluid
I have the following:
<div id="AreaContainer" class="container-fluid scrollBox fluidCentrePosition" style="display:none" title="Area">
...
0
votes
0
answers
19
views
Not able to configure syslog as data input on Port 514 on splunk kubernetes deployment [closed]
I have installed splunk on Azure kubernetes cluster by simply running the following 2 commands:
1.
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/1.1.0/splunk-operator-...
0
votes
1
answer
40
views
How to add new cards to gridview on tap of button flutter
I am trying to code something for my flutter app.
I have an empty gridview (5x6 configuration) on center top and 5 colored buttons (color containers) at the bottom (each with a different color), and a ...
0
votes
1
answer
77
views
Modern C++ containers with default initialization
Is it still possible to change the initialization in C++ containers to default initialization instead of value initialization?
There is a method below that modifies the allocator to change it, but std:...
0
votes
0
answers
17
views
Running chromium inside container resulting in inconsistent crashes
I am currently having some difficulty in running chromium within a docker container. I am running a custom python application that can capture data from websites. Currently, I'm in the process of ...
0
votes
0
answers
53
views
Docker-compose: how to use Nginx Reverse Proxy with routing
I am using docker-compose with nginx reverse proxy to run it on server with different paths:
server_ip/backend
server_ip /frontend
should work on port 80.
I'm testing it with a docker-compose using ...
0
votes
1
answer
52
views
Pytest is failing on GitHub Actions but succeeds locally
Problem and background
I've created a CLI-based application in Python that uses SQLite to store user data. It is installed for one user at a time, and there is no communication with the outside world (...
0
votes
1
answer
24
views
How can save installed packaged in container? [closed]
I pull a debian image :
docker pull debian:bullseye
Enter it :
docker run -it debian:bullseye
root@ac0c546c8376:/#
Install nginx in the container:
root@ac0c546c8376:/# apt install -y nginx
Quit it ...
0
votes
1
answer
16
views
shell script : container vs host
For Loop to start from 2nd argument behaving differently on container and host
#!/bin/bash
for i in "${@:2}"
do
echo $i
done
Call:
script.sh 129 5 6 7
Output:
Container: Alpine:...
0
votes
2
answers
61
views
Quarkus docker container failed to run / connect to the DB
In my project, using Quarkus, Angular and PostgreSQL DB, when I run the backend & and the frontend in dev Mode, I can connect to the DB (which is postgreSQL image running in a docker container) ...
0
votes
1
answer
32
views
How to reload a container in kubernetes
I have a pod named 'sample_pod' and a container named 'sample_container' running inside the pod. sample_container's entry point is a python bin file (sample.py). Inside this container, I have CRL ...
2
votes
1
answer
24
views
how to add text inside a container flutter
I'm new to flutter and trying to implement a dashboard screen. below first image showing my implementation so far with code. I want to enter the text below the icon as the second picture. I tried but ...
0
votes
1
answer
24
views
Nginx chef docker
I am new to docker concept. For an application I need to create nginx container.
The nginx configuration is in chef cookbook, hence I have example.conf.erb file and default.rb (containing setup nginx ...
0
votes
0
answers
32
views
Copy Elision instead of copy constructor inside a container?
I'm trying to implement my own vector container, and while implementing the push_back() method, I thought of using Copy Elision (copy memory) of the already constructed objects instead of using the ...
0
votes
1
answer
18
views
How can I get an image in a Bootstrap column to sit tight against the viewport edge?
I'm using bootstrap and I'd like to get an image out of my container so that it hits the edges. I already tried with relative and absolute position but I can't find the trick. Can someone help me? ...
0
votes
0
answers
36
views
Best way to improve build times/pipeline with a Windows focused c++ app?
My teammate and I work for a small dev team and have become 'the build and pipeline guys'. We're moving to the next big version of our legacy application, and have been researching ways to renovate ...
-1
votes
0
answers
14
views
how can i modify the default page of apache server using kubernetes
I have set up a Kubernetes cluster with an application (Apache server) and I can't make any changes to the Apache server. If I try to modify the default page of apache or create other pages it is ...
0
votes
0
answers
28
views
How can a java application running within a Fargate container connect to Aurora Postgresql db?
We have a java application running in a Fargate container and this application needs to connect and have limited access to the Aurora Postgesql DB.
How can this java application connect to Aurora ...
0
votes
1
answer
23
views
In Docker Swarm mode, is there a way to restart a Docker service, just before it reaches a specific threshold of cpu or memory?
The story goes like this!
I have used Docker Swarm mode as an orchestration tool!
I have deployed my live_ofbiz service in swarm mode!
Service live_ofbiz contains bloated containers, with an image of ...
0
votes
2
answers
26
views
Flutter UI - Container Border Margin interface Issue
I've been trying to work on my ecommerce homepage, as you can see from the screenshot I'm trying to fix the categories icon position in my Homescreen
though it seem to be stable on Android switching ...
0
votes
0
answers
10
views
Pool for scaling celery workers in containers
I have celery workers running in container with a single processor per container so that the scaling can be controlled by scaling up/down the containers. This is working but is there a recommended ...
0
votes
0
answers
35
views
Flutter - Draw responsive triangles inside a container
What's the best way to create responsive triangles inside a container in flutter? (example of images below).
Is there any way to easily draw triangles to fill a container with custom sizes? Or in ...
0
votes
0
answers
16
views
Asp.Net Core using Kestrel Response being garbled in Nano Server Container
I have an asp.net 5.0 web api app running in: mcr.microsoft.com/windows/nanoserver:1809
About half the time the response is being corrupted. What is happening is that somewhere in the middle of ...