summaryrefslogtreecommitdiff
path: root/daemon/container_windows.go
Commit message (Collapse)AuthorAgeFilesLines
* daemon: fix capitalization of some functionsSebastiaan van Stijn2020-04-141-1/+1
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Add canonical import commentDaniel Nephin2018-02-051-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Remove redundant build-tagsSebastiaan van Stijn2017-12-181-2/+0
| | | | | | | | Files that are suffixed with `_linux.go` or `_windows.go` are already only built on Linux / Windows, so these build-tags were redundant. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Added an apparmorEnabled boolean in the Daemon struct to indicate if ↵ROBERTO MUÑOZ2017-01-301-0/+11
| | | | | | | | | | | | | | | | | | | | | | AppArmor is enabled or not. It is set in NewDaemon using sysInfo information. Signed-off-by: Roberto Muñoz Fernández <robertomf@gmail.com> Added an apparmorEnabled boolean in the Daemon struct to indicate if AppArmor is enabled or not. It is set in NewDaemon using sysInfo information. Signed-off-by: Roberto Muñoz Fernández <robertomf@gmail.com> gofmt'd Signed-off-by: Roberto Muñoz Fernández <robertomf@gmail.com> change the function name to something more adequate and changed the behaviour to show empty value on an apparmor disabled system. Signed-off-by: Roberto Muñoz Fernández <robertomf@gmail.com> go fmt Signed-off-by: Roberto Muñoz Fernández <robertomf@gmail.com>
* Move Container to its own package.David Calavera2015-12-031-213/+0
| | | | | | | | So other packages don't need to import the daemon package when they want to use this struct. Signed-off-by: David Calavera <david.calavera@gmail.com> Signed-off-by: Tibor Vass <tibor@docker.com>
* This patch adds --tmpfs as a option for mounting tmpfs on directoriesDan Walsh2015-12-021-0/+4
| | | | | | | | | It will Tar up contents of child directory onto tmpfs if mounted over This patch will use the new PreMount and PostMount hooks to "tar" up the contents of the base image on top of tmpfs mount points. Signed-off-by: Dan Walsh <dwalsh@redhat.com>
* Update daemon and docker core to use new content addressable storageTonis Tiigi2015-11-241-11/+15
| | | | | | | | | | | | | | | | | Add distribution package for managing pulls and pushes. This is based on the old code in the graph package, with major changes to work with the new image/layer model. Add v1 migration code. Update registry, api/*, and daemon packages to use the reference package's types where applicable. Update daemon package to use image/layer/tag stores instead of the graph package Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
* Merge pull request #17851 from Microsoft/10662-ArgumentEscapingAntonio Murdaca2015-11-141-0/+1
|\ | | | | Prevent double escaping of Dockerfile commands on Windows
| * This fixes the case where arguments are escaped twice from Dockerfiles onDarren Stahl2015-11-131-0/+1
| | | | | | | | | | | | Windows Signed-off-by: Darren Stahl <darst@microsoft.com>
* | Merge pull request #17589 from Microsoft/jjh/refactorprocessconfigDavid Calavera2015-11-121-6/+5
|\ \ | | | | | | Refactor ProcessConfig
| * | Refactor ProcessConfigJohn Howard2015-11-091-6/+5
| | | | | | | | | | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* | | Windows [TP4] Fix docker cp when volumesJohn Howard2015-11-111-0/+13
| |/ |/| | | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* | Windows: Add default isolation exec driver optionJohn Howard2015-11-101-1/+1
|/ | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Remove further references to the daemon within containers.David Calavera2015-11-041-1/+1
| | | | Signed-off-by: David Calavera <david.calavera@gmail.com>
* Decouple daemon and container to manage networks.David Calavera2015-11-041-16/+16
| | | | Signed-off-by: David Calavera <david.calavera@gmail.com>
* Decouple daemon and container to cleanup containers.David Calavera2015-11-041-1/+1
| | | | Signed-off-by: David Calavera <david.calavera@gmail.com>
* Decouple daemon and container to mount and unmount filesystems.David Calavera2015-11-041-26/+2
| | | | | | | | Side effects: - Decouple daemon and container to start containers. - Decouple daemon and container to copy files. Signed-off-by: David Calavera <david.calavera@gmail.com>
* Turn IPC unmount errors into warnings.David Calavera2015-10-301-2/+1
| | | | | | | | And do not try to unmount empty paths. Because nobody should be woken up in the middle of the night for them. Signed-off-by: David Calavera <david.calavera@gmail.com>
* Merge pull request #16779 from Microsoft/10662-execdrivercommandDavid Calavera2015-10-301-24/+16
|\ | | | | Windows: Refactor execdriver.Command
| * Windows: Refactor execdriver.CommandJohn Howard2015-10-301-24/+16
| | | | | | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* | Force IPC mount to unmount on daemon shutdown/initBrian Goff2015-10-301-1/+5
|/ | | | | | | | | | Instead of using `MNT_DETACH` to unmount the container's mqueue/shm mounts, force it... but only on daemon init and shutdown. This makes sure that these IPC mounts are cleaned up even when the daemon is killed. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Windows: Adds support for Hyper-V ContainersJohn Howard2015-10-291-0/+25
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Windows: Refactor resources structureJohn Howard2015-10-261-1/+3
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Windows: Add volume supportJohn Howard2015-10-221-12/+6
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Merge pull request #16660 from Microsoft/js/hostnameBrian Goff2015-10-081-0/+1
|\ | | | | Windows: --hostname support
| * Windows: --hostname supportJohn Starks2015-09-291-0/+1
| | | | | | | | | | | | | | | | This passes through the container hostname to HCS, which in Windows Server 2016 TP4 will set the container's hostname in the registry before starting it. This will be silently ignored by TP3. Signed-off-by: John Starks <jostarks@microsoft.com>
* | Network remote APIs using new router, --net=<user-defined-network> changesMadhu Venugopal2015-10-071-0/+11
| | | | | | | | | | | | | | | | | | | | | | * Moving Network Remote APIs out of experimental * --net can now accept user created networks using network drivers/plugins * Removed the experimental services concept and --default-network option * Neccessary backend changes to accomodate multiple networks per container * Integration Tests Signed-off-by: David Calavera <david.calavera@gmail.com> Signed-off-by: Madhu Venugopal <madhu@docker.com>
* | Revert "Merge pull request #16228 from duglin/ContextualizeEvents"Tibor Vass2015-09-291-6/+5
|/ | | | | | | | | | | | | | | | | | | | | Although having a request ID available throughout the codebase is very valuable, the impact of requiring a Context as an argument to every function in the codepath of an API request, is too significant and was not properly understood at the time of the review. Furthermore, mixing API-layer code with non-API-layer code makes the latter usable only by API-layer code (one that has a notion of Context). This reverts commit de4164043546d2b9ee3bf323dbc41f4979c84480, reversing changes made to 7daeecd42d7bb112bfe01532c8c9a962bb0c7967. Signed-off-by: Tibor Vass <tibor@docker.com> Conflicts: api/server/container.go builder/internals.go daemon/container_unix.go daemon/create.go
* Fix windows cross compile with new netlinkMichael Crosby2015-09-241-0/+4
| | | | Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
* Add context.RequestID to event streamDoug Davis2015-09-241-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds a "request ID" to each event generated, the 'docker events' stream now looks like this: ``` 2015-09-10T15:02:50.000000000-07:00 [reqid: c01e3534ddca] de7c5d4ca927253cf4e978ee9c4545161e406e9b5a14617efb52c658b249174a: (from ubuntu) create ``` Note the `[reqID: c01e3534ddca]` part, that's new. Each HTTP request will generate its own unique ID. So, if you do a `docker build` you'll see a series of events all with the same reqID. This allow for log processing tools to determine which events are all related to the same http request. I didn't propigate the context to all possible funcs in the daemon, I decided to just do the ones that needed it in order to get the reqID into the events. I'd like to have people review this direction first, and if we're ok with it then I'll make sure we're consistent about when we pass around the context - IOW, make sure that all funcs at the same level have a context passed in even if they don't call the log funcs - this will ensure we're consistent w/o passing it around for all calls unnecessarily. ping @icecrime @calavera @crosbymichael Signed-off-by: Doug Davis <dug@us.ibm.com>
* Merge pull request #15862 from calavera/share_shm_and_mqueueJess Frazelle2015-09-241-0/+12
|\ | | | | Share shm and mqueue between containers.
| * Add support for sharing /dev/shm/ and /dev/mqueue between containersMrunal Patel2015-09-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | This changeset creates /dev/shm and /dev/mqueue mounts for each container under /var/lib/containers/<id>/ and bind mounts them into the container. When --ipc:container<id/name> is used, then the /dev/shm and /dev/mqueue of the ipc container are used instead of creating new ones for the container. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan) (cherry picked from commit d88fe447df0e87b3a57f9d08b108b141dd72678c)
* | Windows: [TP4] Add CPU WeightJohn Howard2015-09-221-2/+4
| | | | | | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* | Move api/errors/ to errors/Doug Davis2015-09-171-1/+1
| | | | | | | | | | | | Per @calavera's suggestion: https://github.com/docker/docker/pull/16355#issuecomment-141139220 Signed-off-by: Doug Davis <dug@us.ibm.com>
* | Merge pull request #16355 from duglin/DaemonErrorsJess Frazelle2015-09-171-6/+6
|\ \ | | | | | | Convert some "daemon" static error strings to the new errocode package format
| * | Convert some "daemon" static error strings to the new errocode package formatDoug Davis2015-09-161-6/+6
| |/ | | | | | | Signed-off-by: Doug Davis <dug@us.ibm.com>
* | Update native execdriver to exploit libcontainer hooksMadhu Venugopal2015-09-161-0/+5
|/ | | | | | | | | | Using @mavenugo's patch for enabling the libcontainer pre-start hook to be used for network namespace initialization (correcting the conflict with user namespaces); updated the boolean check to the more generic SupportsHooks() name, and fixed the hook state function signature. Signed-off-by: Madhu Venugopal <madhu@docker.com> Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
* Windows: Fix golint daemon breaking commitJohn Howard2015-09-021-9/+0
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* golint fixes for daemon/ packageMorgan Bauer2015-08-271-22/+22
| | | | | | | | | | | | - some method names were changed to have a 'Locking' suffix, as the downcased versions already existed, and the existing functions simply had locks around the already downcased version. - deleting unused functions - package comment - magic numbers replaced by golang constants - comments all over Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
* Merge pull request #14242 from cpuguy83/add_volume_apiSebastiaan van Stijn2015-08-261-1/+1
|\ | | | | Add volume api
| * Add volume API/CLIBrian Goff2015-08-261-1/+1
| | | | | | | | Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* | Revert "Add support for sharing /dev/shm/ and /dev/mqueue between containers"David Calavera2015-08-261-12/+0
|/ | | | | | This reverts commit d88fe447df0e87b3a57f9d08b108b141dd72678c. Signed-off-by: David Calavera <david.calavera@gmail.com>
* Add support for sharing /dev/shm/ and /dev/mqueue between containersMrunal Patel2015-08-191-0/+12
| | | | | | | | | | This changeset creates /dev/shm and /dev/mqueue mounts for each container under /var/lib/containers/<id>/ and bind mounts them into the container. When --ipc:container<id/name> is used, then the /dev/shm and /dev/mqueue of the ipc container are used instead of creating new ones for the container. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
* Windows: Graph remove custom interface and add central storeStefan J. Wernli2015-08-141-58/+17
| | | | | | | | Signed-off-by: Stefan J. Wernli <swernli@microsoft.com> Windows: add support for images stored in alternate location. Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
* Windows: Enable NAT port mappingJohn Howard2015-08-121-4/+8
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Windows: Remove some TODOsJohn Howard2015-07-301-2/+2
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Cleanup links top level pkgAntonio Murdaca2015-07-291-6/+4
| | | | | | | | - Move top level pkg links under daemon - Refactor code accordingly - golint pkg Signed-off-by: Antonio Murdaca <runcom@linux.com>
* Windows: Factoring out unused fieldsJohn Howard2015-07-271-12/+10
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Merge pull request #14688 from Microsoft/10662-hookupmacJessie Frazelle2015-07-211-2/+1
|\ | | | | Windows: Hook up user supplied MAC
| * Windows: Hook up user supplied MACJohn Howard2015-07-161-2/+1
| | | | | | | | Signed-off-by: John Howard <jhoward@microsoft.com>