Skip to content
Advertisement

“docker: invalid reference format” when downloading latest version of php

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
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement