Questions tagged [data-containers]
22 questions
27
votes
3 answers
Docker Compose - How to store database data?
I am new to docker and developing a project using docker compose. From the documentation I have learned that I should be using data only containers to keep data persistant but I am unable to do so using docker-compose.
Whenever I do docker-compose…

Salman Ghauri
- 574
- 1
- 5
- 16
13
votes
8 answers
C#: What style of data containers are preferred in general?
When creating a simple data container class, what should it be?
Class or struct?
Mutable or immutable?
With or without non-empty constructor?
Examples of the above:
struct MutableStruct
{
public string Text { get; set; }
public int Number…

Svish
- 152,914
- 173
- 462
- 620
11
votes
3 answers
Bootstrap tooltip data-container=body and limit scope of css on .tooltip-inner
I am using bootstrap 3.3 tooltips and had an issue with the tooltips being cropped/hidden. I solved this by setting data-container="body".

Jason
- 2,113
- 2
- 14
- 7
5
votes
3 answers
Docker - How to access a volume not attached to a container?
I have (had) a data container which has a volume used by other containers (--volumes-from).
The data container has accidentally been removed.
Thankfully the volume was not removed.
Is there any way I can re run the data container and point it BACK…

Matt Bryson
- 2,286
- 2
- 22
- 42
3
votes
3 answers
Docker: Push data container onto Docker Hub
I am really new at this Docker stuff, and even newer at Docker Hub, so please bear with me …
I have created a data container to use with my docker image (specifically, a data container to store data for a running mssql-server-lnux image). I know…

Manngo
- 14,066
- 10
- 88
- 110
2
votes
1 answer
How to make docker container be notified when volume from another container was updated?
I have docker container with Nginx and data container with static (JS,CSS) files only.
At app start Nginx mounts volume from data container using volume_from.
The problem appears when I want to update my static files because Nginx container can't…

Edward Stone
- 41
- 1
- 3
2
votes
0 answers
How to share versioned data within a pod
We are currently serving around 140 webapps created by a bunch of different web agencies. The setup is the usual LEMP stack.
A 1.2 k8s cluster has been installed to migrate them as micro-services.
The problem we are facing is about serving static…

dynek
- 21
- 2
2
votes
0 answers
Fig apparently not using volume_from on mysql service
I'm trying to setup a very simple setup of a mysql database using a data-container as repository using Fig.sh and Docker.
The code below is self-explanatory:
web:
build: .
command: php -S 0.0.0.0:8000 -t /code
ports:
- "8000:8000"
…

William Lepinski
- 888
- 1
- 7
- 14
2
votes
3 answers
Alternative ways to load / save data - without serialization?
Ok. I know how to use Serialization and such, but since that only applies to Objects that's been marked with Serialization attribute - how can I for example load data and use it in an application without using Serialization? Say a data file.
Or,…

Deukalion
- 2,516
- 9
- 32
- 50
1
vote
1 answer
ADA - Records in a hashmap. Problems with printing the hash map
I'm new to programming and this is my first attempt at a data container with records. I'm having difficulty with printing the hashmap between line 65-70. I'm guessing I need to break down the record and print each of its attributes individually but…

Ben
- 61
- 3
1
vote
1 answer
docker volume container strategy
Let's say you are trying to dockerise a database (couchdb for example).
Then there are at least two assets you consider volumes for:
database files
log files
Let's further say you want to keep the db-files private but want to expose the log-files…

vkoster
- 45
- 8
1
vote
2 answers
TFS workspace with Jenkins Docker container
So I have a Jenkins master container ali_jenkins_m setup which I spin up using a data volume container ali_jenkins_data for storing the Jenkins data.
docker run -p 8080:8080 -p 50000:50000 --name ali_jenknins_master --volumes-from ali_jenkins_data…

Ali Bhagat
- 475
- 1
- 6
- 15
0
votes
1 answer
ESP32 heap corruption error when releasing allocated memory
I am currently programming the ESP32 board in C++ and I am having trouble with my dataContainer class and releasing/allocating memory.
I do use the following DataContainer class (simplyfied):
template
class…

Slev1n
- 25
- 7
0
votes
1 answer
Why should I call Dispose on DataContainer or DataContext while it seems it doesn't differ?
I create a simple test program to find out the memory and speed difference between calling Dispose vs not calling it for DataContainer object.
Here my test program:
static void Main(string[] args)
{
Stopwatch stopwatch = new Stopwatch();
…

Amir Karimi
- 5,401
- 4
- 32
- 51
0
votes
1 answer
Data container with numeric field names
Is there a way in python to create a data container with numeric field names?
A minimal example: I have variables called beta0, beta1, beta2 and would like to pack them into a container beta and access them by beta.0, beta.1, beta.2.
I checked…

user64150
- 59
- 5