1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client
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
..
ps api/client fix golint errors/warnings 2015-07-29 17:20:54 +00:00
attach.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
build.go Merge pull request #14980 from jlhawn/build_tag_resolved_digests 2015-07-29 16:52:14 -07:00
cli.go Set uuid.Loggerf to nop on client and to logrus.Warnf on daemon 2015-07-29 17:49:59 -04:00
client.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
commit.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
cp.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
create.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
diff.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
events.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
exec.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
export.go api/client fix golint errors/warnings 2015-07-29 17:20:54 +00:00
hijack.go golint for cliconfig 2015-07-20 16:48:58 -07:00
history.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
images.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
import.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
info.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
inspect.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
kill.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
load.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
login.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
logout.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
logs.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
network.go api/client fix golint errors/warnings 2015-07-29 17:20:54 +00:00
pause.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
port.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
ps.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
pull.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
push.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
rename.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
restart.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
rm.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
rmi.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
run.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
save.go api/client fix golint errors/warnings 2015-07-29 17:20:54 +00:00
search.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
service.go api/client fix golint errors/warnings 2015-07-29 17:20:54 +00:00
start.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
stats.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
stats_unit_test.go change memory usage display 2015-04-11 20:04:34 +08:00
stop.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
tag.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
top.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
trust.go Rename to flags and environment variables to content trust 2015-07-24 16:31:18 -07:00
unpause.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
utils.go golint for cliconfig 2015-07-20 16:48:58 -07:00
version.go api/client fix golint errors/warnings 2015-07-29 17:20:54 +00:00
wait.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00