Commit Graph
27 Commits
Author SHA1 Message Date
Derek McGowan 715d6f8e42 Update Darwin defaults to useable values
The current Darwin defaults are not supported on Darwin and do not allow
for successfully pulling or running containers. Switch to defaults that
will work on Darwin based on new features in containerd 2.2.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-11-04 22:44:28 -08:00
Derek McGowan 54ba402a29 Add default sandboxer to client
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-10-01 16:04:36 -07:00
Carlos Eduardo Arango Gutierrez 54325eedc8 Fix typos introduced on PR 12323
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2025-09-25 08:53:25 +02:00
Maksym Pavlenko 9ca659a530 Add conf.d include in the default config
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-09-24 14:03:23 -07:00
Henry Wang a083b669c9 Set default differ for the default unpack config of transfer service
Signed-off-by: Henry Wang <henwang@amazon.com>
2025-04-01 22:39:49 +00:00
Marat Radchenko f6e30e9622 [defaults] Reorganize per-platform defaults
* defaults_unix.go contains settings common to all Unixes
* defaults_linux.go contains Linux-specific settings
* defaults_unix_nolinux.go contains non-Linux Unix settings

User-visible change of this commit is that now FreeBSD uses proper paths: /var/run instead of Linux-specific /run

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
2024-11-17 19:10:32 +03:00
James Sturtevant f74e5ce7e6 Move differ default to its own file
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
2024-01-31 09:54:27 -08:00
James Sturtevant 81409e9373 Add a default differ that matches the snapshotter
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
2024-01-30 14:34:58 -08:00
James Jenkins 8aa2551ce0 Move DefaultSnapshotter constants
Move the DefaultSnapshotter constants to the defaults package.
Fixes issue #8226.

Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
2024-01-12 13:28:46 -05:00
Artem Khramov 0cea317a52 FreeBSD: set default runtime
@samuelkarp's https://github.com/samuelkarp/runj is a de facto default
FreeBSD runtime.

This change creates a set of defaults for FreeBSD setting
`wtf.sbk.runj.v1` as the default runtime.

Signed-off-by: Artem Khramov <akhramov@pm.me>
2023-08-14 22:44:21 +03:00
Maksym Pavlenko 3bc8fc4d30 Cleanup build constraints
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-12-08 09:36:20 -08:00
Hajime Tazaki a43fa9f284 darwin: runtime support
This commit attemts to support containerd on darwin platform.  With an
external runtime shim, ctr run should work with, for instance,
--runtime=io.containerd.runu.v1.  An example of runtime and shim is
managed under different repository (github.com/ukontainer/runu/).

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
2021-09-03 09:48:21 +09:00
Akihiro Suda d3aa7ee9f0 Run go fmt with Go 1.17
The new `go fmt` adds `//go:build` lines (https://golang.org/doc/go1.17#tools).

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-22 09:31:50 +09:00
Derek McGowan 6f027e38a8 Remove redundant build tags
Remove build tags which are already implied by the name of the file.
Ensures build tags are used consistently

Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-08-05 22:27:46 -07:00
Maksym Pavlenko 7917da764c Change default directories on Darwin
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-08-04 14:12:32 -07:00
Akihiro Suda 9a7ca39cbd defaults: add DefaultConfigDir
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-03-15 13:27:15 +09:00
Michael Crosby f055bdb0aa Remove windows v1 runtime
Closes #3094

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-23 18:54:37 +00:00
Phil Estes 62609d66d0 Fix typo in description comment
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2019-05-20 04:21:39 -04:00
Derek McGowan 2f60e389a0 Merge pull request #2626 from krsoninikhil/defaults3
Uses namespace labels for default options
2019-04-02 11:46:35 -07:00
John Howard a849664519 Windows:ProgramFiles to ProgramData
Signed-off-by: John Howard <jhoward@microsoft.com>
2019-03-21 18:50:01 -07:00
Nikhil Soni 6a21728fb6 Use defaults package for listing namespace labels
Labels that are used for configuring defaults are moved to defaults package

Signed-off-by: Nikhil Soni <krsoninikhil@gmail.com>
2019-02-12 01:24:31 +05:30
Michael Wan 7fd6d5e2be fix words misspell
Signed-off-by: Michael Wan <zirenwan@gmail.com>
2018-04-23 00:09:42 -04:00
Stephen J Day acc71293c5 server: allow configuration default send/recv message sizes
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2018-03-23 16:17:23 -07:00
Kunal Kushwaha b12c3215a0 Licence header added
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
2018-02-19 10:32:26 +09:00
Akihiro Suda 507a149488 cio: add WithFIFODir opt
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-01-18 14:33:56 +09:00
Kenfe-Mickael Laventure 6bf779c589 Use defaults pkg for all platforms
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-11-28 18:04:21 -08:00
Stephen J Day 0a1a13448b defaults: add package to contain server defaults
To reduce the binary size of containerd, we no longer import the
`server` package for only a few defaults. This reduces the size of `ctr`
by 2MB. There are probably other gains elsewhere.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-02 13:59:34 -07:00