Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Guix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
inf
Guix
Commits
c829bc80
Commit
c829bc80
authored
9 years ago
by
David Thompson
Committed by
David Thompson
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gnu: system: Add Linux container file systems.
* gnu/system/file-systems.scm (%container-file-systems): New variable.
parent
c1f6a0c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gnu/system/file-systems.scm
+40
-0
40 additions, 0 deletions
gnu/system/file-systems.scm
with
40 additions
and
0 deletions
gnu/system/file-systems.scm
+
40
−
0
View file @
c829bc80
...
@@ -45,6 +45,7 @@ (define-module (gnu system file-systems)
...
@@ -45,6 +45,7 @@ (define-module (gnu system file-systems)
%control-groups
%control-groups
%base-file-systems
%base-file-systems
%container-file-systems
mapped-device
mapped-device
mapped-device?
mapped-device?
...
@@ -198,6 +199,45 @@ (define %base-file-systems
...
@@ -198,6 +199,45 @@ (define %base-file-systems
%immutable-store
)
%immutable-store
)
%control-groups
))
%control-groups
))
;; File systems for Linux containers differ from %base-file-systems in that
;; they impose additional restrictions such as no-exec or need different
;; options to function properly.
;;
;; The file system flags and options conform to the libcontainer
;; specification:
;; https://github.com/docker/libcontainer/blob/master/SPEC.md#filesystem
(
define
%container-file-systems
(
list
;; Psuedo-terminal file system.
(
file-system
(
device
"none"
)
(
mount-point
"/dev/pts"
)
(
type
"devpts"
)
(
flags
'
(
no-exec
no-suid
))
(
needed-for-boot?
#t
)
(
create-mount-point?
#t
)
(
check?
#f
)
(
options
"newinstance,ptmxmode=0666,mode=620"
))
;; Shared memory file system.
(
file-system
(
device
"tmpfs"
)
(
mount-point
"/dev/shm"
)
(
type
"tmpfs"
)
(
flags
'
(
no-exec
no-suid
no-dev
))
(
options
"mode=1777,size=65536k"
)
(
needed-for-boot?
#t
)
(
create-mount-point?
#t
)
(
check?
#f
))
;; Message queue file system.
(
file-system
(
device
"mqueue"
)
(
mount-point
"/dev/mqueue"
)
(
type
"mqueue"
)
(
flags
'
(
no-exec
no-suid
no-dev
))
(
needed-for-boot?
#t
)
(
create-mount-point?
#t
)
(
check?
#f
))))
;;;
;;;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment