This reduces memory usage with a lot of docker proxy processes. On Docker for Mac we are currently carrying a patch to replace the binary as we modify it to forward ports to the Mac rather than the Linux VM, this allows us to simply replace this binary in our packaging with one that has a compatible interface. This patch does not provide an easy way to substitute a binary as the interface is complex and there are few use cases, but where needed this can be done. Signed-off-by: Justin Cormack <justin.cormack@docker.com> Upstream-commit: 0682468431867e3382a759402eb92df5877e310b Component: engine
17 lines
409 B
Bash
17 lines
409 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
[ -z "$KEEPDEST" ] && \
|
|
rm -rf "$DEST"
|
|
|
|
(
|
|
source "${MAKEDIR}/.binary-setup"
|
|
export BINARY_SHORT_NAME="$DOCKER_DAEMON_BINARY_NAME"
|
|
export SOURCE_PATH='./cmd/dockerd'
|
|
source "${MAKEDIR}/.binary"
|
|
export BINARY_SHORT_NAME="$DOCKER_PROXY_BINARY_NAME"
|
|
export SOURCE_PATH='./vendor/src/github.com/docker/libnetwork/cmd/proxy'
|
|
source "${MAKEDIR}/.binary"
|
|
copy_containerd "$DEST" 'hash'
|
|
)
|