From 78aec2130242b81659bd199c6c8605c76e681ff6 Mon Sep 17 00:00:00 2001 From: Alessandro Rossi Date: Sat, 27 Aug 2022 18:28:24 +0200 Subject: Fix #15499 already connected network Compat: Treat already attached networks as a no-op Applies only to containers in created state. Maintain error in running state. Co-authored-by: Alessandro Rossi Co-authored-by: Brent Baude Co-authored-by: Jason T. Greene Signed-off-by: Alessandro Rossi Signed-off-by: Jason T. Greene --- libpod/define/errors.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpod/define/errors.go') diff --git a/libpod/define/errors.go b/libpod/define/errors.go index fd27e89de..be471c27e 100644 --- a/libpod/define/errors.go +++ b/libpod/define/errors.go @@ -179,6 +179,9 @@ var ( // ErrNetworkInUse indicates the requested operation failed because the network was in use ErrNetworkInUse = errors.New("network is being used") + // ErrNetworkConnected indicates that the required operation failed because the container is already a network endpoint + ErrNetworkConnected = errors.New("network is already connected") + // ErrStoreNotInitialized indicates that the container storage was never // initialized. ErrStoreNotInitialized = errors.New("the container storage was never initialized") -- cgit v1.2.3-54-g00ecf