Must use symlink for hidden docker socket otherwise "invalid cross-device link"
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-07-28 19:48:20 +02:00
parent 32246a5328
commit c5c6dcde21

View File

@@ -35,7 +35,7 @@ func StartDaemon(d Daemon) error {
if !d.Disabled {
startDaemon(d)
} else if !d.NotHiddenSocket {
if err := os.Link(HiddenDockerSocketPath, StdDockerSocketPath); err != nil {
if err := os.Symlink(HiddenDockerSocketPath, StdDockerSocketPath); err != nil {
return errors.Wrap(err, "failed to link hidden docker socket to common one")
}
}