Top "Containers" questions

A container is a class, a data structure, or an abstract data type whose instances are collections of other objects.

Singleton design pattern vs Singleton beans in Spring container

As we all know we have beans as singleton by default in Spring container and if we have a web …

java spring singleton containers
How to move Docker containers between different hosts?

I cannot find a way of moving docker running containers from one host to another. Is there any way I …

docker containers docker-registry
What's the difference between ClusterIP, NodePort and LoadBalancer service types in Kubernetes?

1 - I'm reading the documentation and I'm slightly confused with the wording. It says: ClusterIP: Exposes the service on a …

kubernetes containers kubernetes-service
Copy map values to vector in STL

Working my way through Effective STL at the moment. Item 5 suggests that it's usually preferable to use range member functions …

c++ stl containers
Returning a pointer to a vector element in c++

I have a vector of myObjects in global scope. I have a method which uses a std::vector<myObject&…

c++ pointers containers iterator
How to SSH into Docker?

I'd like to create the following infrastructure flow: How can that be achieved using Docker?

docker containers lxc
Connect to docker container as user other than root

BY default when you run docker run -it [myimage] OR docker attach [mycontainer] you connect to the terminal as root …

docker containers root
How can I use std::maps with user-defined types as key?

I'm wondering why I can't use STL maps with user-defined classes. When I compile the code below, I get the …

c++ dictionary stl containers stdmap
What's the best way to iterate over two or more containers simultaneously

C++11 provides multiple ways to iterate over containers. For example: Range-based loop for(auto c : container) fun(c) std::for_…

c++ c++11 iterator containers
How do I stretch an image to fit the whole background (100% height x 100% width) in Flutter?

I have an image that doesn't match the aspect ratio of my device's screen. I want to stretch the image …

image containers flutter stretch