From adbe229fcb34d8747297f824a8b465b01be3437a Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Mon, 8 Jan 2024 20:26:03 +0100 Subject: [PATCH] Add support for NetBSD (#2023) NetBSD can run Docker CLI and then use Docker on some remote machine via DOCKER_HOST. (This can be probably extended to all other Unix-es capable of running just Docker CLI.) Co-authored-by: ChristopherHX --- pkg/container/docker_auth.go | 2 +- pkg/container/docker_build.go | 2 +- pkg/container/docker_cli.go | 2 +- pkg/container/docker_images.go | 2 +- pkg/container/docker_logger.go | 2 +- pkg/container/docker_network.go | 2 +- pkg/container/docker_pull.go | 2 +- pkg/container/docker_run.go | 2 +- pkg/container/docker_stub.go | 2 +- pkg/container/docker_volume.go | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/container/docker_auth.go b/pkg/container/docker_auth.go index 9c263f5..e8dfb7d 100644 --- a/pkg/container/docker_auth.go +++ b/pkg/container/docker_auth.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_build.go b/pkg/container/docker_build.go index fdc04d8..5f56ec7 100644 --- a/pkg/container/docker_build.go +++ b/pkg/container/docker_build.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_cli.go b/pkg/container/docker_cli.go index a1481c3..82d3246 100644 --- a/pkg/container/docker_cli.go +++ b/pkg/container/docker_cli.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) // This file is exact copy of https://github.com/docker/cli/blob/9ac8584acfd501c3f4da0e845e3a40ed15c85041/cli/command/container/opts.go // appended with license information. diff --git a/pkg/container/docker_images.go b/pkg/container/docker_images.go index 2277230..50ec68d 100644 --- a/pkg/container/docker_images.go +++ b/pkg/container/docker_images.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_logger.go b/pkg/container/docker_logger.go index f2c21e6..b9eb503 100644 --- a/pkg/container/docker_logger.go +++ b/pkg/container/docker_logger.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_network.go b/pkg/container/docker_network.go index 8a7528a..6c2676f 100644 --- a/pkg/container/docker_network.go +++ b/pkg/container/docker_network.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_pull.go b/pkg/container/docker_pull.go index ad75958..7c94c10 100644 --- a/pkg/container/docker_pull.go +++ b/pkg/container/docker_pull.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go index 1832884..dcb2df5 100644 --- a/pkg/container/docker_run.go +++ b/pkg/container/docker_run.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container diff --git a/pkg/container/docker_stub.go b/pkg/container/docker_stub.go index 36f530e..d5c5ef1 100644 --- a/pkg/container/docker_stub.go +++ b/pkg/container/docker_stub.go @@ -1,4 +1,4 @@ -//go:build WITHOUT_DOCKER || !(linux || darwin || windows) +//go:build WITHOUT_DOCKER || !(linux || darwin || windows || netbsd) package container diff --git a/pkg/container/docker_volume.go b/pkg/container/docker_volume.go index 0bb2cd7..f99c584 100644 --- a/pkg/container/docker_volume.go +++ b/pkg/container/docker_volume.go @@ -1,4 +1,4 @@ -//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows)) +//go:build !(WITHOUT_DOCKER || !(linux || darwin || windows || netbsd)) package container