I'm using the following Docker version
Docker version 19.03.8, build afacb8b
I'm building my image using the following command
docker build -f my.Dockerfile .
which tells me
Successfully built 367dc883875e
How do I run the above image and expose port 3000? I tried this
docker run -p localhost:3000:3000 367dc883875e
docker: invalid publish opts format (should be name=value but got 'localhost:3000:3000').
See 'docker run --help'.
but get the error you see above.