load the patched seccomp profile only on arm

This commit is contained in:
Robert Kaussow
2021-01-17 18:40:36 +01:00
parent bfdf3034c1
commit b1959299c7
3 changed files with 4 additions and 19 deletions

View File

@@ -341,7 +341,10 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
args := []string{
"--data-root", daemon.StoragePath,
"--host=unix:///var/run/docker.sock",
"--seccomp-profile=/etc/docker/default.json",
}
if _, err := os.Stat("/etc/docker/default.json"); err == nil {
args = append(args, "--seccomp-profile=/etc/docker/default.json")
}
if daemon.StorageDriver != "" {