LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-20-2019, 03:48 AM   #1
HTop
Member
 
Registered: Mar 2019
Posts: 44

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


Hi,
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.

Regards,
H.
 
Old 05-20-2019, 06:13 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 01:53 AM.

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