Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
Online-Werkzeuge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Co
Online-Werkzeuge
Compare revisions
master to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
aco/ow
Select target project
No results found
master
Select Git revision
Loading items
Swap
Target
pgerwinski/ow
Select target project
pgerwinski/ow
aco/ow
bwildenhain/ow
3 results
master
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (10)
Initial contaienr and docker description.
· a1b8bff5
Armin Co
authored
5 years ago
a1b8bff5
Merge branch 'master' into docker
· 2bdbaf07
Armin Co
authored
5 years ago
2bdbaf07
Added License
· 622e8de8
Armin Co
authored
5 years ago
622e8de8
Added file link to readme
· c319022f
Armin Co
authored
5 years ago
c319022f
Beschreibung: Was ist Docker?
· d781b2e4
Armin Co
authored
5 years ago
d781b2e4
Docker Dokumentation Update
· c8d62cd2
Armin Co
authored
5 years ago
c8d62cd2
Beispiel zur Verwendung von namespaces
· fed3073f
Armin Co
authored
5 years ago
fed3073f
Merge remote-tracking branch 'upstream/master'
· fb17bdee
Armin Co
authored
5 years ago
fb17bdee
Update
· 6d3dc82d
Armin Co
authored
4 years ago
6d3dc82d
Typo
· cc7d48a2
Armin Co
authored
4 years ago
cc7d48a2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
docker-container.pdf
+0
-0
0 additions, 0 deletions
docker-container.pdf
docker-container.tex
+408
-0
408 additions, 0 deletions
docker-container.tex
namespace_isolation.c
+40
-0
40 additions, 0 deletions
namespace_isolation.c
with
449 additions
and
0 deletions
README.md
View file @
cc7d48a2
...
@@ -7,6 +7,7 @@ Hochschule Bochum, Campus Velbert/Heiligenhaus
...
@@ -7,6 +7,7 @@ Hochschule Bochum, Campus Velbert/Heiligenhaus
*
[
Anleitung für Vortragende
](
https://gitlab.cvh-server.de/pgerwinski/ow/-/raw/master/online-werkzeuge-extra.pdf
)
*
[
Anleitung für Vortragende
](
https://gitlab.cvh-server.de/pgerwinski/ow/-/raw/master/online-werkzeuge-extra.pdf
)
*
[
Anleitung für die IT-Abteilung
](
https://gitlab.cvh-server.de/pgerwinski/ow/-/raw/master/online-werkzeuge-admin.pdf
)
*
[
Anleitung für die IT-Abteilung
](
https://gitlab.cvh-server.de/pgerwinski/ow/-/raw/master/online-werkzeuge-admin.pdf
)
*
[
**Warum gerade diese Online-Werkzeuge?**
](
https://gitlab.cvh-server.de/pgerwinski/ow/-/raw/master/online-werkzeuge-nachhaltig.pdf
)
*
[
**Warum gerade diese Online-Werkzeuge?**
](
https://gitlab.cvh-server.de/pgerwinski/ow/-/raw/master/online-werkzeuge-nachhaltig.pdf
)
*
[
Beschreibung Docker & Container
](
https://gitlab.cvh-server.de/aco/ow/-/raw/docker/docker-container.pdf
)
Copyright © 2020 Peter Gerwinski
Copyright © 2020 Peter Gerwinski
...
...
This diff is collapsed.
Click to expand it.
docker-container.pdf
0 → 100644
View file @
cc7d48a2
File added
This diff is collapsed.
Click to expand it.
docker-container.tex
0 → 100644
View file @
cc7d48a2
This diff is collapsed.
Click to expand it.
namespace_isolation.c
0 → 100644
View file @
cc7d48a2
// compile with
// gcc -Wall -O3 -o namespace_isolation namespace_isolation.c
// found at:
// https://www.toptal.com/linux/separation-anxiety-isolating-your-system-with-linux-namespaces
//
#define _GNU_SOURCE
#include
<sched.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<sys/wait.h>
#include
<unistd.h>
#define CHILD_STACK_SIZE 1048576
static
char
child_stack
[
CHILD_STACK_SIZE
];
static
int
child_fn
()
{
// Calling unshare() from inside the init process
// lets you create a new namespace
// after a new process has been spawned.
unshare
(
CLONE_NEWNET
);
printf
(
"New `net` Namespace:
\n
"
);
int
ret
=
system
(
"ip link"
);
printf
(
"
\n\n
"
);
return
ret
;
}
int
main
()
{
printf
(
"Original `net` Namespace:
\n
"
);
int
ret
=
system
(
"ip link"
);
printf
(
"
\n\n
"
);
pid_t
child_pid
=
clone
(
child_fn
,
\
child_stack
+
CHILD_STACK_SIZE
,
\
CLONE_NEWPID
|
CLONE_NEWNS
|
SIGCHLD
,
NULL
);
waitpid
(
child_pid
,
NULL
,
0
);
return
ret
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.