You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If both exist we need to check and see if the docker command is actually docker,
306
+
// or if it is a podman script in a trenchcoat.
307
+
try
308
+
{
309
+
vardockerinfo=GetConfig().RootElement;
310
+
// Docker's info output has a 'DockerRootDir' top-level property string that is a good marker,
311
+
// while Podman has a 'host' top-level property object with a 'buildahVersion' subproperty
312
+
varhasdockerProperty=
313
+
dockerinfo.TryGetProperty("DockerRootDir",outvardockerRootDir)&&dockerRootDir.GetString()is not null;
314
+
varhasPodmanProperty=dockerinfo.TryGetProperty("host",outvarhost)&&host.TryGetProperty("buildahVersion",outvarbuildahVersion)&&buildahVersion.GetString()is not null;
0 commit comments