Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker Machine
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
SmartDataLab
public
applications
Docker Machine
Commits
9460ab97
Commit
9460ab97
authored
Jul 22, 2022
by
Daniel
Committed by
Tomasz Maczukin
Jul 22, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Add docker restart to machine provisioning
parent
4af66e65
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmachine/provision/ubuntu_systemd.go
+10
-1
10 additions, 1 deletion
libmachine/provision/ubuntu_systemd.go
with
10 additions
and
1 deletion
libmachine/provision/ubuntu_systemd.go
+
10
−
1
View file @
9460ab97
...
@@ -144,6 +144,15 @@ func (provisioner *UbuntuSystemdProvisioner) Provision(swarmOptions swarm.Option
...
@@ -144,6 +144,15 @@ func (provisioner *UbuntuSystemdProvisioner) Provision(swarmOptions swarm.Option
// enable in systemd
// enable in systemd
log
.
Debug
(
"enabling docker in systemd"
)
log
.
Debug
(
"enabling docker in systemd"
)
err
=
provisioner
.
Service
(
"docker"
,
serviceaction
.
Enable
)
if
err
=
provisioner
.
Service
(
"docker"
,
serviceaction
.
Enable
);
err
!=
nil
{
return
err
}
// force restart docker in case it was already enabled in the base image
log
.
Debug
(
"restart docker in systemd"
)
if
err
=
provisioner
.
Service
(
"docker"
,
serviceaction
.
Restart
);
err
!=
nil
{
return
err
}
return
err
return
err
}
}
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
sign in
to comment