docker react does not work in localhost

后端 未结 2 1189
青春惊慌失措
青春惊慌失措 2021-01-28 19:48

I am trying to run my react app with docker, when I run the container, everything seems fine but I can\'t access it on localhost (or 127.0.0.1). Here is my configuration:

<
2条回答
  •  攒了一身酷
    2021-01-28 19:53

    A container must be started before you can run a command in it.

    docker start seyaa/client
    

    Then you may run eg. a shell

    docker run seyaa/client /bin/sh
    

提交回复
热议问题