summaryrefslogtreecommitdiff
path: root/dockerversion
Commit message (Collapse)AuthorAgeFilesLines
* fix some commentscui fliter2023-04-251-1/+1
| | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* dockerversion: DockerUserAgent(): use sync.Once to construct User-AgentSebastiaan van Stijn2023-03-221-15/+36
| | | | | | | | | | | | The User-Agent includes the kernel version, which involves making a syscall (and parsing the results) on Linux, and reading (plus parsing) the registry on Windows. These operations are relatively costly, and we should not perform those on every request that uses the User-Agent. This patch adds a sync.Once so that we only perform these actions once for the lifetime of the daemon's process. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* IAmStatic not used anymoreCrazyMax2023-01-011-1/+0
| | | | Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
* gofmt GoDoc comments with go1.19Sebastiaan van Stijn2022-07-081-2/+4
| | | | | | | | Older versions of Go don't format comments, so committing this as a separate commit, so that we can already make these changes before we upgrade to Go 1.19. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* use go-winres for windows build and cleanup autogen and winresourcesCrazyMax2022-04-141-4/+0
| | | | Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
* Update to Go 1.17.0, and gofmt with Go 1.17Sebastiaan van Stijn2021-08-241-0/+1
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* info: remove "expected" check for tini versionSebastiaan van Stijn2021-08-231-1/+0
| | | | | | | | | These checks were added when we required a specific version of containerd and runc (different versions were known to be incompatible). I don't think we had a similar requirement for tini, so this check was redundant. Let's remove the check altogether. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Use -X ldflags to set dockerversion package varsBrian Goff2019-12-021-2/+2
| | | | | | | This eliminates the need to lay down an auto-generated file. IIRC this was originally hadded for gccgo which we no longer support. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Remove version-checks for containerd and runcSebastiaan van Stijn2018-10-041-2/+0
| | | | | | | | | | | With containerd reaching 1.0, the runtime now has a stable API, so there's no need to do a check if the installed version matches the expected version. Current versions of Docker now also package containerd and runc separately, and can be _updated_ separately. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* fix typojliao2018-09-081-1/+1
| | | | | | fix typo Signed-off-by: jian liao <jliao@alauda.io>
* api/server, dockerversion: modify context keyKimMachineGun2018-08-221-3/+3
| | | | Signed-off-by: KimMachineGun <geon0250@gmail.com>
* Expose license status in Info (#37612)Daniel Hiltgen2018-08-171-9/+10
| | | | | | | | | | | | | | | | | | | * Expose license status in Info This wires up a new field in the Info payload that exposes the license. For moby this is hardcoded to always report a community edition. Downstream enterprise dockerd will have additional licensing logic wired into this function to report details about the current license status. Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com> * Code review comments Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com> * Add windows autogen support Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com>
* builder: set buildkit's exported product variable via PRODUCTTibor Vass2018-07-161-0/+1
| | | | | | | | | | | This introduces a PRODUCT environment variable that is used to set a constant at dockerversion.ProductName. That is then used to set BuildKit's ExportedProduct variable in order to show useful error messages to users when a certain version of the product doesn't support a BuildKit feature. Signed-off-by: Tibor Vass <tibor@docker.com>
* Various code-cleanupSebastiaan van Stijn2018-05-231-8/+8
| | | | | | remove unnescessary import aliases, brackets, and so on. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Switch from x/net/context -> contextKir Kolyshkin2018-04-231-1/+1
| | | | | | | | | | | Since Go 1.7, context is a standard package. Since Go 1.9, everything that is provided by "x/net/context" is a couple of type aliases to types in "context". Many vendored packages still use x/net/context, so vendor entry remains for now. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
* Add canonical import commentDaniel Nephin2018-02-052-2/+2
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* api: generalize version information to any platform componentTibor Vass2017-12-061-0/+1
| | | | | | | | | | | | This change adds a Platform struct with a Name field and a general Components field to the Version API type. This will allow API consumers to show version information for the whole platform and it will allow API providers to set the versions for the various components of the platform. All changes here are backwards compatible. Signed-off-by: Tibor Vass <tibor@docker.com>
* Spelling fixesJosh Soref2017-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * additional * ambiguous * anonymous * anything * application * because * before * building * capabilities * circumstances * commit * committer * compresses * concatenated * config * container * container's * current * definition * delimiter * disassociates * discovery * distributed * doesnotexist * downloads * duplicates * either * enhancing * enumerate * escapable * exactly * expect * expectations * expected * explicitly * false * filesystem * following * forbidden * git with * healthcheck * ignore * independent * inheritance * investigating * irrelevant * it * logging * looking * membership * mimic * minimum * modify * mountpoint * multiline * notifier * outputting * outside * overridden * override * parsable * plugins * precedence * propagation * provided * provides * registries * repositories * returning * settings * should * signals * someone * something * specifically * successfully * synchronize * they've * thinking * uninitialized * unintentionally * unmarshaling * unnamed * unreferenced * verify Signed-off-by: Josh Soref <jsoref@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Move UAStringKey to dockerversion pkgTonis Tiigi2016-12-261-3/+5
| | | | | Removes grpc dependency from client Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
* dockerversion: add other binaries to _lib.goAlexander Morozov2016-11-111-4/+7
| | | | | | Otherwise it's impossible to build without autogen tag Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Pass upstream client's user agent through to registry on operations beyond pullsAaron Lehmann2016-03-211-5/+6
| | | | | | | | | | | | This adds support for the passthrough on build, push, login, and search. Revamp the integration test to cover these cases and make it more robust. Use backticks instead of quoted strings for backslash-heavy string contstands. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
* Pass upstream client's user agent through to registry on image pullsMike Goelzer2016-03-201-3/+52
| | | | | | | | | | | | Changes how the Engine interacts with Registry servers on image pull. Previously, Engine sent a User-Agent string to the Registry server that included only the Engine's version information. This commit appends to that string the fields from the User-Agent sent by the client (e.g., Compose) of the Engine. This allows Registry server operators to understand what tools are actually generating pulls on their registries. Signed-off-by: Mike Goelzer <mgoelzer@docker.com>
* *: purge dockerinit from source codeAleksa Sarai2016-01-261-3/+0
| | | | | | | | | | dockerinit has been around for a very long time. It was originally used as a way for us to do configuration for LXC containers once the container had started. LXC is no longer supported, and /.dockerinit has been dead code for quite a while. This removes all code and references in code to dockerinit. Signed-off-by: Aleksa Sarai <asarai@suse.com>
* Remove the use of dockerversion from the registry packageDaniel Nephin2016-01-151-0/+24
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* dockerversion placeholder for library importVincent Demeester2015-11-091-0/+16
| | | | | | | - Add a *version* file placeholder. - Update autogen and builds to use it and an autogen build flag Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Removing -X flag option and autogenerated code to create Dockerversion.go ↵Srini Brahmaroutu2015-02-201-15/+0
| | | | | | | | functionality Addresses #9207 Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
* Fix "-X" 6l usage ("define string data")Tianon Gravi2015-01-161-1/+1
| | | | | | It turns out "-X" is only for strings! :) Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
* Move even more stuff into dockerversionTianon Gravi2014-02-111-0/+4
| | | | | | Also, use it in all the places. :) Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Move docker version introspection to a sub-package.Solomon Hykes2014-02-111-0/+11
This facilitates the refactoring of commands.go. Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)