Mailinglist Archive: opensuse-bugs (4251 mails)

< Previous Next >
[Bug 1038476] "zypper in docker" fails with "docker: command not found"
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 10 May 2017 16:53:16 +0000
  • Message-id: <bug-1038476-21960-UeVGxu72Id@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1038476
http://bugzilla.suse.com/show_bug.cgi?id=1038476#c1

Martin Pluskal <mpluskal@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |mpluskal@xxxxxxxx,
| |tchvatal@xxxxxxxx

--- Comment #1 from Martin Pluskal <mpluskal@xxxxxxxx> ---
It seems to be caused by %pre section:
if [[ -d "%{docker_store}" && -n "$(find "%{docker_graph}" -maxdepth 1 -type d
2>/dev/null | grep -Ev '_tmp|^%{docker_graph}$')" ]]; then
# Check if currently installed version of docker is old enough to need
migration.
CURRENT_DOCKER_VERSION=$(docker -v | sed
's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')
# This variable will contain the current docker version if migration is
needed otherwise it will contain the upgrade point.
# Next time the docker package needs to be upgraded without restarting the
service increase the 1.10.1 to the new version.
NEED_UPGRADE_VERSION=$(echo -e
"$CURRENT_DOCKER_VERSION\n%{last_migration_version}" | sort -V | head -1)

if [[ $CURRENT_DOCKER_VERSION == $NEED_UPGRADE_VERSION ]]; then
touch %{docker_migration_testfile}
fi
fi


Which fails in case %{docker_store} (/var/lib/docker) exists and docker is not
already installed.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References