1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Josh Hawn 75f6929b44 Fix docker cp Behavior With Symlinks
[pkg/archive] Update archive/copy path handling

  - Remove unused TarOptions.Name field.
  - Add new TarOptions.RebaseNames field.
  - Update some of the logic around path dir/base splitting.
  - Update some of the logic behind archive entry name rebasing.

[api/types] Add LinkTarget field to PathStat

[daemon] Fix stat, archive, extract of symlinks

  These operations *should* resolve symlinks that are in the path but if the
  resource itself is a symlink then it *should not* be resolved. This patch
  puts this logic into a common function `resolvePath` which resolves symlinks
  of the path's dir in scope of the container rootfs but does not resolve the
  final element of the path. Now archive, extract, and stat operations will
  return symlinks if the path is indeed a symlink.

[api/client] Update cp path hanling

[docs/reference/api] Update description of stat

  Add the linkTarget field to the header of the archive endpoint.
  Remove path field.

[integration-cli] Fix/Add cp symlink test cases

  Copying a symlink should do just that: copy the symlink NOT
  copy the target of the symlink. Also, the resulting file from
  the copy should have the name of the symlink NOT the name of
  the target file.

  Copying to a symlink should copy to the symlink target and not
  modify the symlink itself.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-07-30 12:14:28 -07:00
..
events New package daemon/events 2015-04-07 08:43:14 -07:00
execdriver Merge pull request #15163 from crosbymichael/proc-ro 2015-07-30 15:12:29 -04:00
graphdriver Merge pull request #15040 from vbatts/vbatts-double-decompress-fix 2015-07-29 16:48:02 -07:00
links Cleanup links top level pkg 2015-07-29 23:39:18 +02:00
logger golint fixes for daemon/logger/* 2015-07-29 13:09:39 -07:00
network golint on daemon/network package 2015-07-21 22:49:49 +08:00
archive.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
archive_unix.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
archive_windows.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
attach.go Fix regression in containers attach/wsattach api, return not found before hijacking 2015-07-01 18:16:17 +02:00
changes.go Refactor server to use daemon as the service layer in controllers 2015-05-02 03:12:58 +02:00
commit.go Fixing Image struct to no longer use Graph. 2015-07-20 13:59:53 -07:00
config.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
config_experimental.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
config_stub.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
config_unix.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
config_windows.go Windows: Fixes panic on daemon binary 2015-07-24 12:30:49 -07:00
container.go Merge pull request #14773 from runcom/cleanup-links 2015-07-29 20:17:44 -04:00
container_unit_test.go move nat tests from container's unit test to nat's ones 2015-07-21 00:29:24 +02:00
container_unix.go Merge pull request #14773 from runcom/cleanup-links 2015-07-29 20:17:44 -04:00
container_windows.go Cleanup links top level pkg 2015-07-29 23:39:18 +02:00
create.go /graph fix lin errors/warnings 2015-07-29 20:59:36 +00:00
create_unix.go Replace GenerateRandomID with GenerateNonCryptoID 2015-07-28 22:31:01 -07:00
create_windows.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
daemon.go Replace GenerateRandomID with GenerateNonCryptoID 2015-07-28 22:31:01 -07:00
daemon_aufs.go Move graph.SetupInitLayer to daemon package where it is used 2015-06-16 16:50:56 -07:00
daemon_btrfs.go Windows: Don't build Linux graph drivers 2015-06-08 15:09:33 -07:00
daemon_devicemapper.go Windows: Don't build Linux graph drivers 2015-06-08 15:09:33 -07:00
daemon_no_aufs.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
daemon_overlay.go Windows: Don't build Linux graph drivers 2015-06-08 15:09:33 -07:00
daemon_test.go Merge pull request #15076 from hqhq/hq_merge_daemon_test 2015-07-29 14:53:34 -04:00
daemon_unix.go Use *int64 for MemorySwappiness. 2015-07-29 14:14:04 -07:00
daemon_windows.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
daemon_zfs.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
debugtrap_unix.go Windows: Win32 event for sigusr1 linux equivalence 2015-07-06 18:58:53 -07:00
debugtrap_unsupported.go Windows: Win32 event for sigusr1 linux equivalence 2015-07-06 18:58:53 -07:00
debugtrap_windows.go Windows: Win32 event for sigusr1 linux equivalence 2015-07-06 18:58:53 -07:00
delete.go Cleanup links top level pkg 2015-07-29 23:39:18 +02:00
exec.go Replace GenerateRandomID with GenerateNonCryptoID 2015-07-28 22:31:01 -07:00
exec_freebsd.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
exec_linux.go Windows: Split ContainerExecCreate 2015-05-06 16:19:27 -07:00
exec_windows.go Windows: Split ContainerExecCreate 2015-05-06 16:19:27 -07:00
export.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
history.go History.Swap Use parallel assignment to swap elements, as it's 2015-03-25 00:13:13 +03:00
image_delete.go /graph fix lin errors/warnings 2015-07-29 20:59:36 +00:00
info.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
inspect.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
inspect_unix.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
inspect_windows.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
kill.go Keep backwards compatibility in kill api. 2015-07-28 12:25:36 -07:00
list.go golint: Fix issues in pkg/nat 2015-07-22 00:47:41 +01:00
logdrivers_linux.go Add new logging driver: fluentd 2015-06-26 11:03:11 +09:00
logdrivers_windows.go Windows: Factor out syslog and journald 2015-05-14 10:34:09 -07:00
logs.go Split reader interface from logger interface 2015-07-21 20:47:31 -04:00
monitor.go Split reader interface from logger interface 2015-07-21 20:47:31 -04:00
pause.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
README.md
rename.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
resize.go Refactor server to use daemon as the service layer in controllers 2015-05-02 03:12:58 +02:00
restart.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
start.go Windows: hostconfig on start 2015-07-16 15:33:13 -07:00
state.go Validate status= filter to docker ps 2015-07-02 16:12:42 -07:00
state_test.go Fix vet errors about unkeyed fields 2014-12-12 10:44:59 -08:00
stats.go Update libcontainer 2015-07-16 16:02:26 -07:00
stats_collector_unix.go Update libcontainer 2015-07-16 16:02:26 -07:00
stats_collector_windows.go Windows: Factor out stat collector 2015-06-01 09:11:03 -07:00
stats_freebsd.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
stats_linux.go Update libcontainer 2015-07-16 16:02:26 -07:00
stats_windows.go Update libcontainer 2015-07-16 16:02:26 -07:00
stop.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
top.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
unpause.go Cleanup container LogEvent calls 2015-06-01 12:39:28 -07:00
utils_freebsd.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
utils_linux.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
utils_nounix.go Windows: Tidy up daemon\utils*.go 2015-07-09 18:47:32 -07:00
utils_test.go Windows: Tidy up daemon\utils*.go 2015-07-09 18:47:32 -07:00
volumes.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
volumes_linux_unit_test.go Promote volume drivers from experimental to master. 2015-07-21 09:32:44 -07:00
volumes_unit_test.go Allow named volumes for external drivers. 2015-05-21 20:34:17 -07:00
volumes_unix.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
volumes_windows.go Windows: Factoring out unused fields 2015-07-27 17:44:18 -07:00
wait.go Move container.WaitStop, AttachWithLogs and WsAttachWithLogs to daemon service in api server 2015-05-11 19:56:41 +02:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver