Used port error while installing pihole

Hi,

I installed ubuntu server 20.10 on rpi4 4gb booting from usb
Then installed docker then portainer 2.0 (2.1.1)
after portainer became up and running I tried to install pihole from this tutorial

I changed image to pihole/pihole:latest

It didn’t work. I believe, I was a little upset, I clicked “deploy the container” button too much. It started giving port in use error.

I deleted the image, there is no image or container but is still seems port is in use

after i check with ss command I found PID of using process and tried to kill it

unfortunately it didn’t work also. process appered again with a new PID.

Do you have an idea, how can I release ports? help to this noob please

ubuntu@rpi44:~$ sudo ss -tunlp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 127.0.0.53%lo:53 0.0.0.0:* users:((“systemd-resolve”,pid=2280,fd=12))
tcp LISTEN 0 4096 0.0.0.0:8000 0.0.0.0:* users:((“docker-proxy”,pid=1909,fd=4))
tcp LISTEN 0 4096 0.0.0.0:9000 0.0.0.0:* users:((“docker-proxy”,pid=1895,fd=4))
tcp LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:((“systemd-resolve”,pid=2280,fd=13))
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:((“sshd”,pid=1702,fd=3))
tcp LISTEN 0 128 [::]:22 [::]:* users:((“sshd”,pid=1702,fd=4))

ubuntu@rpi44:~$ docker version
Client: Docker Engine - Community
Version: 20.10.3
API version: 1.41
Go version: go1.13.15
Git commit: 48d30b5
Built: Fri Jan 29 14:33:54 2021
OS/Arch: linux/arm64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.3
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 46229ca
Built: Fri Jan 29 14:32:08 2021
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc92
GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Ubuntu systemd-resolve uses port 53 by default.

That port needs to be available for port binding for PiHole. To solve this:

sudo nano /etc/systemd/resolved.conf

Uncomment and change to no (everything is commented out by default):

DNSStubListener=no

Restart the service.

1 Like

I’m deeply thankful for your response.

Best regards,