github.com/containerd/nerdctl@v1.7.7/pkg/defaults/defaults_freebsd.go (about) 1 /* 2 Copyright The containerd Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package defaults 18 19 import ( 20 gocni "github.com/containerd/go-cni" 21 ) 22 23 const ( 24 AppArmorProfileName = "" 25 SeccompProfileName = "" 26 Runtime = "wtf.sbk.runj.v1" 27 ) 28 29 func DataRoot() string { 30 return "/var/lib/nerdctl" 31 } 32 33 func CNIPath() string { 34 // default: /opt/cni/bin 35 return gocni.DefaultCNIDir 36 } 37 38 func CNINetConfPath() string { 39 return gocni.DefaultNetDir 40 } 41 42 func CNIRuntimeDir() string { 43 return "/run/cni" 44 } 45 46 func BuildKitHost() string { 47 return "unix:///run/buildkit/buildkitd.sock" 48 } 49 50 func CgroupManager() string { 51 return "" 52 } 53 54 func CgroupnsMode() string { 55 return "" 56 } 57 58 func NerdctlTOML() string { 59 return "/etc/nerdctl/nerdctl.toml" 60 } 61 62 func HostsDirs() []string { 63 return []string{"/etc/containerd/certs.d", "/etc/docker/certs.d"} 64 } 65 66 func HostGatewayIP() string { 67 return "" 68 }