Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CopAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Contributor analytics
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
bigdata
CopAS
Commits
d0491d41
Commit
d0491d41
authored
4 years ago
by
Tomáš Rebok
Browse files
Options
Downloads
Patches
Plain Diff
Automaticka detekce MTU a nastaveni Docker daemona
parent
7c17f170
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+4
-1
4 additions, 1 deletion
install.sh
with
4 additions
and
1 deletion
install.sh
+
4
−
1
View file @
d0491d41
...
@@ -190,7 +190,7 @@ else
...
@@ -190,7 +190,7 @@ else
# let's adapt the Docker MTU based on host's MTU
# let's adapt the Docker MTU based on host's MTU
# we have to find out which interface is the default one
# we have to find out which interface is the default one
if
!
hash
ip 2>/dev/null
;
then
if
!
hash
ip 2>/dev/null
;
then
echo
"ERROR: It seems, that 'ip' command is NOT available!"
echo
"ERROR: It seems, that 'ip' command is NOT available!
Unable to set the Docker daemon MTU.
"
echo
"Exiting..."
;
echo
"Exiting..."
;
exit
1
;
exit
1
;
else
else
...
@@ -203,6 +203,9 @@ cat >/etc/docker/daemon.json <<EOF
...
@@ -203,6 +203,9 @@ cat >/etc/docker/daemon.json <<EOF
"mtu":
$default_iface_mtu
"mtu":
$default_iface_mtu
}
}
EOF
EOF
# finally, we have to restart the daemon (TODO: distribution specific?)
systemctl restart docker
fi
fi
# finalize with some information
# finalize with some information
...
...
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