Skip to content
Permalink
Browse files

sysutils/docker-engine: Another patch for libcontainerd to have a Fre…

…eBSD implementation
  • Loading branch information
decke committed Jun 24, 2019
1 parent eeff9bd commit 42bab6d4e78ea4374cfb58a17c220b7af5d9cc48
Showing with 19 additions and 0 deletions.
  1. +19 −0 sysutils/docker-engine/files/patch-libcontainerd_libcontainerd__freebsd.go
@@ -0,0 +1,19 @@
This is a copy from libcontainerd_linux.go

--- libcontainerd/libcontainerd_freebsd.go.orig 2019-06-24 09:47:19 UTC
+++ libcontainerd/libcontainerd_freebsd.go
@@ -0,0 +1,14 @@
+package libcontainerd // import "github.com/docker/docker/libcontainerd"
+
+import (
+ "context"
+
+ "github.com/containerd/containerd"
+ "github.com/docker/docker/libcontainerd/remote"
+ libcontainerdtypes "github.com/docker/docker/libcontainerd/types"
+)
+
+// NewClient creates a new libcontainerd client from a containerd client
+func NewClient(ctx context.Context, cli *containerd.Client, stateDir, ns string, b libcontainerdtypes.Backend) (libcontainerdtypes.Client, error) {
+ return remote.NewClient(ctx, cli, stateDir, ns, b)
+}

0 comments on commit 42bab6d

Please sign in to comment.
You can’t perform that action at this time.