File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,10 @@ import (
2626)
2727
2828const (
29- defaultRuntime = "docker"
30- defaultAmdRuntimeName = "amd"
31- defaultAmdRuntimeExecutable = "amd-container-runtime"
32- defaultAmdRuntimeExecutablePath = "/usr/bin/amd-container-runtime"
33- defaultDockerConfigFilePath = "/etc/docker/daemon.json"
29+ defaultRuntime = "docker"
30+ defaultAmdRuntimeName = "amd"
31+ defaultAmdRuntimeExecutable = "amd-container-runtime"
32+ defaultDockerConfigFilePath = "/etc/docker/daemon.json"
3433)
3534
3635type configOptions struct {
Original file line number Diff line number Diff line change @@ -24,9 +24,10 @@ import (
2424)
2525
2626const (
27- runtimesKey = "runtimes"
28- defaultRuntimeKey = "default-runtime"
29- featuresKey = "features"
27+ runtimesKey = "runtimes"
28+ defaultRuntimeKey = "default-runtime"
29+ featuresKey = "features"
30+ defaultCDISpecPath = "/etc/cdi"
3031)
3132
3233type dockerConfig map [string ]interface {}
@@ -115,6 +116,8 @@ func (d *dockerConfig) UnsetDefaultRuntime() error {
115116// an error and a do not update flag in case daemon.json doesn't need
116117// to be updated
117118func (d * dockerConfig ) RemoveRuntime (name string ) (error , bool ) {
119+ _ = os .RemoveAll (defaultCDISpecPath )
120+
118121 if d == nil {
119122 return fmt .Errorf ("configuration is empty" ), true
120123 }
You can’t perform that action at this time.
0 commit comments