Skip to content

Commit 7917da7

Browse files
committed
Change default directories on Darwin
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent b97a56b commit 7917da7

4 files changed

Lines changed: 43 additions & 3 deletions

File tree

defaults/defaults_darwin.go

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// +build darwin
2+
3+
/*
4+
Copyright The containerd Authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
19+
package defaults
20+
21+
const (
22+
// DefaultRootDir is the default location used by containerd to store
23+
// persistent data
24+
DefaultRootDir = "/var/lib/containerd"
25+
// DefaultStateDir is the default location used by containerd to store
26+
// transient data
27+
DefaultStateDir = "/var/run/containerd"
28+
// DefaultAddress is the default unix socket address
29+
DefaultAddress = "/var/run/containerd/containerd.sock"
30+
// DefaultDebugAddress is the default unix socket address for pprof data
31+
DefaultDebugAddress = "/var/run/containerd/debug.sock"
32+
// DefaultFIFODir is the default location used by client-side cio library
33+
// to store FIFOs.
34+
DefaultFIFODir = "/var/run/containerd/fifo"
35+
// DefaultRuntime is the default Darwin runtime.
36+
// NOTE: there is no runtime on Darwin as of now.
37+
DefaultRuntime = ""
38+
// DefaultConfigDir is the default location for config files.
39+
DefaultConfigDir = "/etc/containerd"
40+
)

defaults/defaults_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows
1+
// +build !windows,!darwin
22

33
/*
44
Copyright The containerd Authors.

mount/temp_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows
1+
// +build !windows,!darwin
22

33
/*
44
Copyright The containerd Authors.

mount/temp_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build windows
1+
// +build windows darwin
22

33
/*
44
Copyright The containerd Authors.

0 commit comments

Comments
 (0)