Docker Community Forums

Share and learn in the Docker community.

Network connection impossible when using Docker with multiple users

I use Docker Desktop for Windows under the following environment

Windows 10 Professional 64bit
Version 2.0.0.3 (31259)
Channel: stable
Build: 8858db3

When the first user runs docker and logs off and the second user logs in and runs docker,
There is a problem that network can not connect.

Below is the execution log.

  • sign in as user1 and run docker
    PS C:\Users\user> docker run --name test1 -it ubuntu /bin/bash
    root@de8667960334:/# apt update
    Get:1 ttp://security.ubuntu.com/ubuntu bionic-security InRelease [88.7
    kB]
    Get:2 ttp://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]

(snip)

Fetched 16.7 MB in 1min 5s (258 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
12 packages can be upgraded. Run ‘apt list --upgradable’ to see them.

(command completed successfully)

root@de8667960334:/# exit
exit
PS C:\Users\user> docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS
NAMES
de8667960334 ubuntu “/bin/bash” 2 minutes
ago Exited (0) 10 seconds ago
test1

(container test1 successfully created)

PS C:\Users\user>

  • sign out user1 and sign in as user2 and run docker

PS C:\Users\sains> docker run -it ubuntu /bin/bash root@238215f9e6e6:/#
apt update
Err:1 ttp://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving ‘security . ubuntu . com’
Err:2 ttp://archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving ‘archive . ubuntu . com’

(snip)

W: Failed to fetch
ttp://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease
Temporary failure resolving ‘security . ubuntu . com’
W: Some index files failed to download. They have been ignored, or old
ones used instead.

(apt update failed)

When user2 tries to use docker, it seems that network connection can not be made. Is this a known problem?
If you explicitly restart Docker Desktop for Windows or restart the OS, network connection
Docker Desktop for Windows quits normally when you sign out.
I think I can solve the problem if I can do it, but I do not know how.

In the configuration of Docker Desktop for Windows, the same result was obtained by fixing the DNS server to 8.8.8.8.

I hope that you can give me some advice.

Best regards,