From: W. Trevor King Date: Fri, 14 Feb 2014 19:47:48 +0000 (-0800) Subject: build.sh: Replace '-name' with '--name' X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe8f2b7a75d7fc95a64d3882a5c89d15978d2ddf;p=dockerfile.git build.sh: Replace '-name' with '--name' Docker has adopted GNU-style long options with v0.8.0 :) [1]: First step toward getopt style flags: As we keep compatibility with flags like -dns we can't have -i -t -> -it but at least - and -- are now correct. Strangely, I the short form doesn't always work for me anymore: $ docker run -name my-container -hostname my-container wking/gentoo /bin/bash flag provided but not defined: -hostname Note that the -name works fine but the newer --hostname requires the '--' form. [1]: https://github.com/dotcloud/docker/pull/3322 e71dbf4 (update commands.go, 2013-12-23) --- diff --git a/build.sh b/build.sh index b31acfe..f52c44b 100755 --- a/build.sh +++ b/build.sh @@ -172,7 +172,7 @@ extract_busybox() msg "extract Busybox binary to ${SUBDIR}" THIS_DIR=$(dirname $($REALPATH $0)) CONTAINER="${NAMESPACE}-gentoo-${DATE}-extract-busybox" - "${DOCKER}" run -name "${CONTAINER}" -v "${THIS_DIR}/${SUBDIR}/":/tmp "${NAMESPACE}/gentoo:${DATE}" cp /bin/busybox /tmp/ + "${DOCKER}" run --name "${CONTAINER}" -v "${THIS_DIR}/${SUBDIR}/":/tmp "${NAMESPACE}/gentoo:${DATE}" cp /bin/busybox /tmp/ "${DOCKER}" rm "${CONTAINER}" }