I'am using docker and using the following command:
docker run -d -p 9090:80 -v $(pwd):/usr/share/nginx/html nginx:alpine
to point to my /dist
folder where my app-files are compiled by angular.
I first go to /dist
folder and then run the command from there. This was working fine and I was able to reach the app via port: 9090
, but after docker update, I run in error:
docker: invalid reference format. See 'docker run --help'.
I have been searching and checked the following posting docker : invalid reference format, but it seems to be different to my issue.
Here is the info based on the command: docker version
:
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:09 2017
OS/Arch: darwin/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:45:38 2017
OS/Arch: linux/amd64
Experimental: false
Any idea please?
question from:https://stackoverflow.com/questions/47435418/docker-command-returns-invalid-reference-format