-3

I'm new to Docker, i'm using the Toolbox version for dockers. I try the following command:

docker run -it --name myflask1 -p 192.168.99.100:5000 -v ${PWD}:/app python:3.7 bash

The following message appear:

invalid publish opts format (should be name=value but got 'docker-machine')

What is the solution?

tgogos
  • 23,218
  • 20
  • 96
  • 128

1 Answers1

0

Your -p option looks bad. Format should looks:

  • -p ip:hostPort:containerPort,
  • -p ip::containerPort,
  • -p hostPort:containerPort,
  • -p containerPort.
d0niek
  • 218
  • 1
  • 12
  • Thank you for your answer, i try the following: docker run -it --name myflask1 ip:192.168.99.100:5000 -v ${PWD}:/app python:3.7 bash, this also doesn't work – BumDeveloper Dec 18 '19 at 12:53