do not send hostconfig at start, as we do on create now

Signed-off-by: Victor Vieux <vieux@docker.com>
Expose # of CPUs and memory available on docker info.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Cleanup docs Dockerfile, so it matches best practices.

Docker-DCO-1.1-Signed-off-by: Joseph Ferguson <joe@infosiftr.com> (github: yosifkit)
builder: handle escapes without swallowing all of them.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
builder: whitelist verbs useful for environment replacement.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Merge pull request #8743 from vieux/hostconfig_start

do not send hostconfig at start, as we do on create now
Use archive.CopyWithTar in vfs.Create

The vfs storage driver currently shells out to the `cp` binary on the host
system to perform an 'archive' copy of the base image to a new directory.
The archive option preserves the modified time of the files which are created
but there was an issue where it was unable to preserve the modified time of
copied symbolic links on some host systems with an outdated version of `cp`.

This change no longer relies on the host system implementation and instead
utilizes the `CopyWithTar` function found in `pkg/archive` which is used
to copy from source to destination directory using a Tar archive, which
should correctly preserve file attributes.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
update sysinfo to logrus

Signed-off-by: Victor Vieux <vieux@docker.com>
excluding unused transformation to []byte

Signed-off-by: Igor Dolzhikov <bluesriverz@gmail.com>
Merge pull request #8805 from vieux/update_sysinfo_to_logrus

update `pkg` to logrus
Merge pull request #8778 from erikh/builder_fixes

Builder: Environment replacement fixes
builder: Restore /bin/sh handling in CMD when entrypoint is specified with JSON

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Merge pull request #8809 from erikh/builder_cmd_sh_fix

builder: Restore /bin/sh handling in CMD when entrypoint is specified with JSON
Merge pull request #8802 from jlhawn/vfs_copydir_use_archive_copywithtar

Use archive.CopyWithTar in vfs.Create
builder: Update documentation WRT environment replacement

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Merge pull request #8807 from erikh/builder_docs

builder: Update documentation WRT environment replacement
Merge pull request #8806 from takama/ioreader

excluding unused transformation to []byte
Merge pull request #8772 from aluzzardi/docker-info-mem-cpu

Expose # of CPUs and memory available on docker info.
Update libcontainer f60d7b9195f8dc0b5d343abbc3293d

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Merge pull request #8828 from crosbymichael/update-libcontainer-oct4

Update libcontainer to f60d7b9195f8dc0b5d343abbc3293d