Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Linux Containers - /proc mounting and other queries Post 303027017 by sreyan32 on Friday 7th of December 2018 06:17:02 AM
Old 12-07-2018
Quote:
Originally Posted by bakunin
You already got some excellent answers to your questions at hand but you might profit from a little "theory" behind all that, so here it goes:

I hope that connects a few loose ends.

bakunin
It does connect a few loose ends. But I really didn't think docker was a para-virtualization product. I thought they were just implemented as jailed processes.

AFAIK Docker mainly uses Linux Namespaces and Cgroups to create a virualized environment for execution.

One more thing that is bugging me is : When you install a software within a docker container does it get installed into the host OS also? Intution tells me that is how it should be since a Docker mainly shares the host kernel. If so, then shouldn't it share the host package management system.

Where this logic falls apart is when on an Ubuntu system we can run a Debian or Alpine docker. How is that possible? How can debian binaries even run on an Ubuntu system?

Lastly, why does docker need the root filesystem of the OS that it is trying to emulate on disk? What does it mean to have a rootfs of an OS and again how can utilities within in run an another OS. This refers mostly to the video that I have linked in my original question. If it is at all possible please watch it ( I have marked the actual place where it got generated)- you will know why I am getting confused.

--- Post updated at 04:47 PM ---

Quote:
Originally Posted by MadeInGermany
Hard to explain. An example is a disk mount (filesystem like ext3,ext4,reiserfs,xfs,...), that is only allowed once, because writes to the two mount points would cause a corruption in the filesystem on the disk. But: a bind mount of the primary disk mount to another mount point is allowed; all writes occur at the primary mount point.
Didn't get what you explained. Let me tell you of what idea I have of the Linux mount process then may be you will get a better idea of why I am failing to grasp the concept.

Any block device that the kernel identifies can be mounted to a location in the VFS. The location, which is just a directory is called a mount point.

Now one question is that can an already mounted device be mounted twice? A partition that is mounted twice? If so I don't see why it would cause corruption as you say it would. You writing to the same block device, the kernel just identifies it to the user by 2 mount points.

Next, is what is a primary mount point? Is the first mount of the block device? Can a mount point be mounted again? Why would you want to do that?

Where does bind mount fit into all of this?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mounting /proc or /usr

i am not quite sure what the purpose of mounting a filesystem that is already mounted.. i know you may want to mount /usr read only but do not know the true purpose behind this.. and why would /proc be mounted on /proc itself.. this is all new to me.. I have been reading up on it from various... (5 Replies)
Discussion started by: moxxx68
5 Replies

2. UNIX for Dummies Questions & Answers

CD mounting problems with linux

Hi guys I'm a newbie with linux i recently installed mandrake linux 10.0 double boot(win 98se) on a pIII 300mhz 128mb ram PC I have a standard cd rom and for some reason, linux refuses to mount the CD drive it worked perfectly for the first cople of monthes and than suddenly it didn't it... (0 Replies)
Discussion started by: bentzi
0 Replies

3. OS X (Apple)

mounting linux

firstly... sorry xDDD. now, how could i mount a linux partition on my mac os x ( i assume ill use terminal). i begins... i have my ubuntu linux partition on disk0s4. i tried: sudo mount /dev/disk0s4 /Volumes/Ubuntu and the system told me ;), "mount: exec /usr/sbin/mount_ext for... (1 Reply)
Discussion started by: Jariya
1 Replies

4. Red Hat

mounting ISO in linux

Hi Guys, I'm having a bit of trouble and im not sure what is the deal, I'm trying to mount an ISO on my RHEL box and it is not letting me... mount -o loop -t iso9660 /home/bgalante/rhel-5-server-i386-disc3.iso /mnt mount: Not a directory any idea what i am doing wrong? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

5. Linux

Kernal panic error& setuproot:error mounting /proc&/sys

Hi all, I am new to redhat/fedora linux. In fedora linux 6,we created one file system(hda3 - /fs). in this mount poing we were installed mounta vista os. while booting we are getting below error messages. 1) Booting 'mountaVisat(2.6.18_pro 500_pc_target-x86_586 smp)' root(hd0,1)... (2 Replies)
Discussion started by: arjunreddy3
2 Replies

6. UNIX for Dummies Questions & Answers

_/proc/stat vs /proc/uptime

Hi, I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
Discussion started by: coderd
0 Replies

7. Linux

Tripwire Nightware on Linux (proc filesystem)

Hello, I am having a nightmare with Tripwire on Linux..... I cannot get it to ignore the /proc filesystem, which I want to completely ignore for now Has anyone here successfully configured Tripwire on Linux and completed ignored the /proc filesystem ? If so, please reply and tell me how... (0 Replies)
Discussion started by: Neo
0 Replies

8. Programming

Linux 11.2 to 10.2 Proc Compile error

I am trying to compile a proc++ program on linux using an 11.2 client and pointing to a 10.2 database running on Solaris. The compiler is able to connect to the database but the semantic checks fail as if it cannot see any objects in the database. I tried a test, only selecting 'X' into a... (0 Replies)
Discussion started by: rdudash
0 Replies

9. IP Networking

IP Address Linux Containers

Hello All, Please, i have a problem i try to find a solution since days i'm a beginner with linux (networking) In our cluster (10 nodes), we deploy the same image file on each node. So each node has a different ip address. In each image, there are several LXC containers. When I deploy the... (0 Replies)
Discussion started by: chercheur111
0 Replies

10. Red Hat

Looking for equivalent of Solaris containers/zones in RHEL7 Linux

Hi, I come from a legacy Solaris background with lots of experience with Solaris Containers/zones that we use for network and process isolation from each other. Currently we have a RHEL7 Linux VM running on VMWare, but we would like to segment that VM with some form of containers and achieve... (1 Reply)
Discussion started by: ckmehta
1 Replies
ltsp-chroot(8)															    ltsp-chroot(8)

NAME
ltsp-chroot - Chroots into a specific LTSP thin client chroot SYNOPSIS
ltsp-chroot <options> DESCRIPTION
ltsp-chroot chroots into a specified LTSP chroot. Optional arguments can be provided to customize the chroot location as well as extra mounts. If present, default arguments will be read from the configuration file /etc/ltsp/ltsp-chroot.conf, and overwritten with used com- mand line options. OPTIONS
-a --arch arch Sets the architecture of the target chroot. Defaults vary by distribution. -b --base dir Sets the path of the target chroot. Defaults to /opt/ltsp/. -c --mount-package-cache If set, mounts the server package directories to the chroot previous to chrooting. Settings vary by distribution. -d --mount-dev If set, mounts the server dev and devpts directories to the chroot previous to chrooting. -p --mount-proc If set, mounts the server proc to the chroot previous to chrooting. -m --mount-all If set, mounts the proc, dev and package directories to the chroot before chrooting. -p --copy-resolv-conf If set, copies the server resolv.conf to the chroot previous to chrooting. -h --help Displays the ltsp-chroot help message. SEE ALSO
ltsp-build-client(8), AVAILABILITY
ltsp-chroot is part of ltsp package and the latest versions are available in source form from https://launchpad.net/products/ltsp. MAN PAGE AUTHOR
Wim Muskee <wimmmuskee@gmail.com> 2012-02-11 ltsp-chroot(8)
All times are GMT -4. The time now is 01:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy