Docker Desktop for Windows: cannot access service on exposed port in windows container mode

前端 未结 4 2199
隐瞒了意图╮
隐瞒了意图╮ 2021-02-19 04:09

I am using the following Dockerfiles to create a container running Jenkins in a windows container on Windows 10 desktop running Docker Desktop for Windo

4条回答
  •  囚心锁ツ
    2021-02-19 04:50

    I faced the same issue, the ordering of docker run command matters.

    docker run -p : Works

    docker run -p : Doesn't Work

    My setup -

    Using Windows 10 , Version 2004 (OS build 19041.329) WSL 2 enabled - https://docs.microsoft.com/en-us/windows/wsl/wsl2-index Ubuntu 18.04 installed from Microsoft store and its enabled in docker.

    image

提交回复
热议问题