Can't build Docker on Linux 16.04

What is the problem? Please be detailed.

I followed this guide of the American red Cross on how to set up Docker on an Google Cloud vm:


So I set up a Linux 16.04 vm and followed the Guide, but when entering:

docker build --pull -t odk/sync_endpoint https://github.com/opendatakit/sync-endpoint-containers.git

it fails at Step 5 and outputs:

/bin/sh: 1: cd: can’t cd to /sync/src/main/libs
The command ‘/bin/sh -c cd /sync/src/main/libs && . /sync/src/main/libs/mvn_local_installs && sed -i “s/
odk-mysql-it-settings/odk-container-settings/” /sync/aggregate-mysql/pom.xml && cd /sync && mvn -pl “agg
regate-src, odk-container-settings, aggregate-mysql” package && unzip /sync/aggregate-mysql/target/aggregate
-mysql-*.war -d /ROOT’ returned a non-zero code: 2

What you have you tried to fix the problem?

I already reseted the vm and tried Ubuntu 18.04. Also i manually created the problematic path but it didn’t help.

I would be happy if someone of you could help me with that.

I have the same problem in 16.04