# List your network interfaces
$ ip a
# Add Netplan config file and edit as below
# REMEMBER edit your eth0 name according to your network interface
$ sudo nano /etc/netplan/01-docker.yaml
# If on linux
$ sudo netplan apply
# If on windows WSL
$ wsl --shutdown
network:
version: 2
ethernets:
eth0:
addresses:
- 172.17.2.5/20
gateway4: 172.17.15.255
nameservers:
addresses:
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
search: []