Skip to content

Commit d47c31f

Browse files
committed
daemon: deprecate Daemon.Exists
This function was poorly documented as it uses fuzzy matching under the hood, and it's no longer used. Mark it as deprecated, and to be removed in the next release. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 71fffa7 commit d47c31f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

daemon/container.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func (daemon *Daemon) GetContainer(prefixOrName string) (*container.Container, e
7070

7171
// Exists returns a true if a container of the specified ID or name exists,
7272
// false otherwise.
73+
//
74+
// Deprecated: use [Daemon.GetContainer] to look up a container by ID, Name, or ID-prefix. This function will be removed in the next release.
7375
func (daemon *Daemon) Exists(id string) bool {
7476
c, _ := daemon.GetContainer(id)
7577
return c != nil

0 commit comments

Comments
 (0)