mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
hack/make.sh print a warning but don't exit if called outside a correct build environment.
This commit is contained in:
@@ -25,10 +25,9 @@ set -e
|
||||
# but really, they shouldn't. We want to be in a container!
|
||||
RESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
|
||||
grep -q "$RESOLVCONF" /proc/mounts || {
|
||||
echo "# I will only run within a container."
|
||||
echo "# Try this instead:"
|
||||
echo "docker build ."
|
||||
exit 1
|
||||
echo "# WARNING! I don't seem to be running in a docker container.
|
||||
echo "# The result of this command might be an incorrect build, and will not be officially supported."
|
||||
echo "# Try this: 'docker build -t docker . && docker run docker ./hack/make.sh'
|
||||
}
|
||||
|
||||
# List of bundles to create when no argument is passed
|
||||
|
||||
Reference in New Issue
Block a user