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 10-01-2021, 08:52 AM   #1
YngridKeila
LQ Newbie
 
Registered: Oct 2021
Posts: 1

Rep: Reputation: Disabled
How does the use of dynamic libraries (shared objects) work in a container?


Hello, I'm starting studies with container.

I would like to understand how the use of dynamic libraries (shared objects) of the docker works. When the container runs an Ubuntu image equivalent to the host machine's version, will it use the same libraries? Is there any way to capture the libraries used by a specific container?
 
Old 10-01-2021, 09:42 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
The app inside the container can only use so files from the container. Cannot access anything from outside.
 
1 members found this post helpful.
Old 10-08-2021, 02:46 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Some containers are built to expose access to the host system's library directories through the use of controlled links. Others are built to put copies of the libraries that are needed by the container directly in a filesystem that is particular to that container ... so that the container's definition is self-contained. You can do it either way.

In either case, "the container's occupants see only the perfect illusion that you have created for them." They perceive a "file system" that contains exactly what you've put there, and they have no idea where its contents actually come from. (Nor do they [have to ...] care.) They do not see the host at all – only the illusion, which is enough.

Last edited by sundialsvcs; 10-08-2021 at 02:51 PM.
 
  


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
Thread limits in dynamic libraries as opposed to static libraries pmkenny1234 Linux - Software 0 04-26-2011 02:22 PM
How to create a shared memory and some shared objects in linux? jeremy28 Programming 6 06-11-2010 05:21 AM
LXer: Java Data Objects and Service Data Objects in SOA LXer Syndicated Linux News 0 01-17-2009 06:10 AM
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 07:47 AM

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

All times are GMT -5. The time now is 07:16 PM.

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