11,410 questions
Advice
1
vote
9
replies
99
views
Is it a good practice to maintain separate properties for factories, singletons, and instances in the Service Container?
I'm implementing a simple PHP service container for my personal website blog and want to make sure I'm setting it up correctly. My container has three types of service registration methods:
singleton(...
3
votes
2
answers
153
views
Why does Container's add(panel, Integer) provide a different result than add(panel, int)?
To provide background and explanation of the question:
I was working with a base program (below) to figure out how to use JLayeredPane. I created a JLayeredPane and added it to the JFrame, then moved ...
0
votes
0
answers
26
views
Large empty space on the right side of chat bubble: need iMessage style wrapping
My chat bubbles leave a large empty space on the right when messages wrap into multiple lines.
I want the behavior like iMessage/WhatsApp:
Bubble shrinks to fit short text.
Long messages use max ...
3
votes
0
answers
55
views
How to differentiate containers.Map objects in octave?
In Octave, containers.Map objects are handle objects that can be passed around by reference but always refer to the same object [1]. However, the only test for "equality" between containers....
1
vote
0
answers
55
views
PrestaShop Docker container: ‘Access denied for user’ when connecting to MariaDB, even after volume reset on ARM Mac
I am new to Docker. I am trying to run PrestaShop 1.7.7.2 using Docker Compose on my ARM Mac. The stack includes MariaDB, PrestaShop, and phpMyAdmin. Instead when I access the localhost on the web I ...
-2
votes
2
answers
260
views
Is there a better way to keep ids in a vector sequential in C++?
I have a simple C++ program that manages as a todo list. The Todo, class contains a vector of Item to track each todo action and their id. The key constraint is that the ids must be kept strictly ...
0
votes
1
answer
47
views
How should a Function App (Container) authenticate to GitHub via the GH CLI?
I've setup a custom container in Azure that will run a Function App, with the intention of connecting to my organisations GitHub (GHE) instance and using GH CLI pull a list of repos.
I have a PAT ...
1
vote
1
answer
48
views
Spring Boot app works in Docker CLI/Desktop but not when run inside IntelliJ – not accepting requests [closed]
I'm working on a Spring Boot application that runs fine when I:
Run it directly (without Docker)
Dockerize it and run it via Docker CLI: docker run -p 8080:8080 my-app
Run it through Docker Desktop
...
1
vote
0
answers
41
views
Difference in the Response times between Manual flow and via Load runner
My organization has recently implemented the containerization for file upload and download scenarios (previously VMs being used) and we are asked to performance test that.
During my testing I have ...
0
votes
1
answer
54
views
Database field error when launching SpringBoot integration tests with maven command (using PostgreSQLContainer)
I have this situation with my Spring Boot application and the management of tests:
The application is running correctly. But for its unit tests, regular tests are OK, while integration tests are ...
0
votes
0
answers
134
views
FastAPI service in Snowflake Container Services returns Snowflake UI HTML instead of API response
I have deployed a FastAPI application in Snowflake Snowpark Container Services (SPSC), and while the service appears to be running successfully, when I hit my API endpoints, I'm getting Snowflake's ...
0
votes
0
answers
36
views
How to access a protected blob in the application using URL after mounting Azure storage account to the App Container instance
I have following resources:
App Container Instance: hosting React using NginX + Docker
Azure Storage account with access policy to allow only certain IPs (Including mine)
Steps:
Mounted the Storage ...
0
votes
2
answers
67
views
getpeername in containerised environment (podman)
When running getpeername inside a rootless podman container in a bridged network, the return value is different than if I directly use the host's networking stack (in this case, getpeername returns ...
9
votes
1
answer
163
views
Is it allowed to call `deallocate` on a moved-from allocator (MSVC standard containers do)
When MSVC move-constructs an std::set, it also move-constructs the allocator. Later, when it destructs the moved-from set, it uses the allocator to deallocate an element. The following explains what ...
1
vote
0
answers
35
views
No text message in logs or console when my flask app runs in a container
I am currently packaging an old python/flask/pandas application (MyApp) into a podman container.
When MyApp runs directly in Ubuntu Console, text messages (e.g. user defined warnings and errors from ...
0
votes
0
answers
261
views
Best Practices for Using Host Devices in Containers (e.g., `/dev/ttyUSB0`)
I'm trying to use a host device (/dev/ttyUSB0) inside a container environment. While I know there are multiple ways to achieve this, I'd like to understand the minimum configuration required to make ...
0
votes
0
answers
80
views
Issue with Mounting Persistent Volume in MongoDB Container on Azure Container Apps
I'm running a MongoDB container (mongo:latest) on Azure Container Apps, but I'm facing an issue when mounting a persistent volume for MongoDB data. The container works fine before mounting the volume, ...
0
votes
0
answers
59
views
Docker File testing in DockerDesktop with terraform installation
I am trying to test the docker file in local through docker desktop but it not completing successfully but same dockerFile is working through ado pipeline and I am able to build and publish the image ...
0
votes
1
answer
80
views
Issue running HydroMT Hydrological Plugin for Wflow model execution during Docker build process
I want to run a docker container of my Flask App. I am running an open-source hydrological model called 'Wflow' (see GitHub) inside my Flask app. Moreover, to run this model I am also using a plug-in ...
0
votes
0
answers
215
views
/sys/fs/cgroup/user.slice/cgroup.subtree_control lists only fraction of enabled controllers
Lately, I found why rootless podman was unable to run containers with some of the constraints:
$ podman run --tty=true --rm --cpuset-cpus=0-3 ubuntu:latest pwd
Error: runc: runc create failed: unable ...
0
votes
0
answers
142
views
In my Portainer container: How can I export stack details (services) of stacks that are created outside of Portainer (type=swarm,control=limited)?
I have a portainer on a remote server with containers inside. With following code I can list stacks and the stack details of the containers without problem, when the control of the stacks are "...
0
votes
1
answer
112
views
Docker Image Builder in ADO pipeline
I am Trying to build the container image through ADO pipeline and docker Task , While running Bash@3 Task getting Bash Error , that I added below. and if I skip the Bash@3 task getting another error ...
2
votes
1
answer
154
views
Code to create notebook paper look and feel
Here is the problem — my vertical line does not properly fill the page when I want to add text to page. I have created the vertical line and the horizontal line with <div>, and they gave me much ...
1
vote
1
answer
132
views
Podman service api exec to shell
anyone can explain to me how to use :
ContainerExecLibpod
According to document the api has :
AttachStderr
AttachStdin
AttachStdout
I want to know how to use that api parameters .
the podman api ...
0
votes
1
answer
382
views
Make docker containers inside a network accessible externally
So, my situation:
2 docker containers: postgres and a server. I want to run them in a way, that:
prevents external access to postgres
allows server to access postgres
allows external access to server
...