How Can We Help?
An error exit status 4 was encountered while building the Docker image.
This is because your default user has the same id as the one its trying to put on the docker build. This is an incompatibility between docker versions.
Error: An error exit status 4 was encountered while building the Docker image.
When: if you use “ibmcloud dev build”
To fix:
Open up Dockerfile-tools which is located in the project directory
Change the following:
ARG bx_dev_userid=1000
to
ARG bx_dev_userid=1001
If this still, does not work take the failing line which will be the last line in green that is shown and change it so that bx_dev_userid is 1001:
docker image build –file Dockerfile-tools –tag nodehelloworld-express-tools –rm –pull –build-arg bx_dev_userid=1001 –build-arg bx_dev_user=tom .