summaryrefslogtreecommitdiff
path: root/contrib/docker-device-tool
Commit message (Collapse)AuthorAgeFilesLines
* Finish refactor of UID/GID usage to a new structCory Snider2022-03-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | Finish the refactor which was partially completed with commit 34536c498d56, passing around IdentityMapping structs instead of pairs of []IDMap slices. Existing code which uses []IDMap relies on zero-valued fields to be valid, empty mappings. So in order to successfully finish the refactoring without introducing bugs, their replacement therefore also needs to have a useful zero value which represents an empty mapping. Change IdentityMapping to be a pass-by-value type so that there are no nil pointers to worry about. The functionality provided by the deprecated NewIDMappingsFromMaps function is required by unit tests to to construct arbitrary IdentityMapping values. And the daemon will always need to access the mappings to pass them to the Linux kernel. Accommodate these use cases by exporting the struct fields instead. BuildKit currently depends on the UIDs and GIDs methods so we cannot get rid of them yet. Signed-off-by: Cory Snider <csnider@mirantis.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>
* Fix some inefassign warningsKir Kolyshkin2019-09-181-1/+1
| | | | Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
* Remove solaris build tag and `contrib/mkimage/solarisYong Tang2017-11-021-1/+1
| | | | Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add gosimple linterDaniel Nephin2017-09-121-9/+0
| | | | | | Update gometalinter Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Update logrus to v1.0.1Derek McGowan2017-07-311-1/+1
| | | | | | Fixes case sensitivity issue Signed-off-by: Derek McGowan <derek@mcgstyle.net>
* modify some wrong func information in device_tool.golixiaobing100512672016-12-131-1/+1
| | | | Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
* Add functional support for Docker sub commands on SolarisAmit Krishnan2016-11-071-1/+1
| | | | | | Signed-off-by: Amit Krishnan <krish.amit@gmail.com> Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Fix bunch of typosQiang Huang2016-10-291-1/+1
| | | | Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
* Add docs about how to extend devicemapper thin poolChun Chen2016-04-201-0/+14
| | | | Signed-off-by: Chun Chen <ramichen@tencent.com>
* CLI flag for docker create(run) to change block device size.Shishir Mahajan2016-03-281-1/+1
| | | | Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com>
* Windows: Fix docker device toolJohn Howard2015-10-312-0/+6
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Fix docker-device-toolAlexander Morozov2015-10-281-3/+3
| | | | Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* trivial: typo cleanupDavid Mackey2015-04-271-1/+1
| | | | Signed-off-by: David Mackey <tdmackey@booleanhaiku.com>
* Replace aliased imports of logrus, fixes #11762Antonio Murdaca2015-03-261-2/+2
| | | | Signed-off-by: Antonio Murdaca <me@runcom.ninja>
* contrib: fix the docker-device-toolVincent Batts2014-11-241-5/+8
| | | | Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
* Add --log-level supportDoug Davis2014-11-151-0/+1
| | | | | | | | | | Next steps, in another PR, would be: - make all logging go through the logrus stuff - I'd like to see if we can remove the env var stuff (like DEBUG) but we'll see Closes #5198 Signed-off-by: Doug Davis <dug@us.ibm.com>
* update go import path and libcontainerVictor Vieux2014-07-241-1/+1
| | | | Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
* Rename runtime/* to daemon/*Alexander Larsson2014-04-171-1/+1
| | | | Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
* Move graphdrivers into runtime top level pkgMichael Crosby2014-03-171-1/+1
| | | | Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
* Move docker-device-tool to contribAlexander Larsson2013-11-191-0/+170