Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Containers
User Name
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.


  Search this Thread
Old 05-20-2019, 03:48 AM   #1
LQ Newbie
Registered: Mar 2019
Posts: 12

Rep: Reputation: Disabled
Data are not share across the containers

I probably ask a stupid question about containers.

I would like to host a web site using container tecnologies. The web site could be host on a LAMP system.
Containers will allow me to add more container instances to scale up.
If I build a container for Apache+PHP and one for Mysql, it's all ok.
But when I add more MySQL containers, sometimes I do not get my DB: because the DB is not share across the MySQL containers.
Similar to PHP web pages when I add a new Apache+PHP container.

What have I to do, what technology/approch let me get a result?

I use Docker and RancheOS, but I think this issue also happens in other scenarios.

Old 05-20-2019, 06:13 AM   #2
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 447

Rep: Reputation: 118Reputation: 118
You have to setup persistent storage for containers. There are many, many examples on the net...
Old 05-20-2019, 02:04 PM   #3
LQ Newbie
Registered: Mar 2019
Posts: 12

Original Poster
Rep: Reputation: Disabled
Persistent storage?
Something like NFS for files, but what about MYSQL?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Everything You Need to Know about Linux Containers, Part II: Working with Linux Containers (LXC) LXer Syndicated Linux News 0 08-27-2018 01:53 PM
LXer: Containers Running Containers with LinuxKit LXer Syndicated Linux News 0 06-09-2017 06:52 AM
LXer: Containers running Containers LXer Syndicated Linux News 0 04-30-2017 04:30 PM > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration