I’m running this command on the Docker PowerShell terminal. I am using VS Code. It gives a “docker: invalid reference format.” error message each time.
docker run -it --name php_dev --rm -v "${PWD}":/root php:latest bash
Advertisement
Answer
your code should work on terminal.. check on terminal.
Try this
docker run -it --name php_dev --rm -v "${PWD}:/root" php:latest bash