# Docker Portainer with errors

**URL:** https://dietpi.com/forum/t/docker-portainer-with-errors/6360
**Category:** Troubleshooting
**Created:** [22 February 2022 14:24 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360 "2022-02-22T14:24:38Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![HeinHan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/0ea827/32.png) [@HeinHan](https://dietpi.com/forum/u/HeinHan)
#### Post date: [22 February 2022 14:24 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/1 "2022-02-22T14:24:38Z")

</div>

New installation of Dietpi, Docker and Portainer with errors. Here is the LOG from Portainer:

```nohighlight
level=info msg="2022/02/22 13:53:13 [FATAL] [internal,init] No administrator account was created in 5.000000 mins. Shutting down the Portainer instance for security reasons"
INFO 2022/02/22 13:53:15 Encryption key file `portainer` not present
INFO 2022/02/22 13:53:15 Proceeding without encryption key
INFO 2022/02/22 13:53:15 Loading PortainerDB: portainer.db
INFO 2022/02/22 13:53:15 Opened existing store
level=info msg="2022/02/22 13:53:15 [INFO] [main,compose] [message: binary is missing, falling-back to compose plugin] [error: docker-compose binary not found]"
2022/02/22 13:53:15 server: Reverse tunnelling enabled
2022/02/22 13:53:15 server: Fingerprint 25:1f:3c:bc:47:1f:ec:13:57:f6:36:86:dc:08:a4:90
2022/02/22 13:53:15 server: Listening on 0.0.0.0:8000...
INFO 2022/02/22 13:53:15 [INFO] [cmd,main] Starting Portainer version 2.11.1
level=info msg="2022/02/22 13:53:15 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]"
level=info msg="2022/02/22 13:53:15 [DEBUG] [internal,init] [message: start initialization monitor]"
level=info msg="2022/02/22 13:53:15 [INFO] [http,server] [message: starting HTTP server on port :9000]"
level=info msg="2022/02/22 13:53:15 [INFO] [http,server] [message: starting HTTPS server on port :9443]"
level=info msg="2022/02/22 13:55:57 http error: No administrator account found inside the database (err=object not found inside the database) (code=404)"
level=info msg="2022/02/22 13:55:57 http error: No administrator account found inside the database (err=object not found inside the database) (code=404)"
level=info msg="2022/02/22 13:56:11 http error: Unable to initiate communications with environment (err=unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined) (code=500)"

```

Raspi PI 4 Dietpi v8.1.2. …

```nohighlight
 103 DietPi-RAMlog: Makes /var/log a RAM disk, preserves file structure on reboot  
│ [] 104 Dropbear: Lightweight SSH server  
│ [] 130 Python 3: Runtime system, pip package installer and development headers 
│ [] 134 Docker Compose: Manage multi-container Docker applications 
│ [] 162 Docker: Build, ship, and run distributed applications   
│ [] 185 Portainer: Simplifies container management in Docker (standalone host)  
│ [] 200 DietPi-Dashboard (beta): Official lightweight DietPi web interface (Rust)

```

Who can help?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 February 2022 14:28 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/2 "2022-02-22T14:28:12Z")

</div>

Did you tried to restart the container? Looks like it was shutdown automatically as no admin was created

```nohighlight
[FATAL] [internal,init] No administrator account was created in 5.000000 mins. Shutting down the Portainer instance for security reasons"

```

---

<div class="post-metadata">

### Author: ![HeinHan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/0ea827/32.png) [@HeinHan](https://dietpi.com/forum/u/HeinHan)
#### Post date: [22 February 2022 14:36 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/3 "2022-02-22T14:36:16Z")

</div>

Yes, I have. Unfortunately always the error. I installed the programs via Browse Softwar

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 February 2022 14:39 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/4 "2022-02-22T14:39:48Z")

</div>

Did you tried to reinstall the container. There is no DietPi magic behind. We simply start the container. Probably it need to be reported upstream if there is an issue on the container itself.

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [25 February 2023 04:47 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/5 "2023-02-25T04:47:37Z")

</div>

Same here. Brand new installation. Only OpenSSH, Docker installed before installing Portainer. v8.14 x86 PC VMware BIOS or UEFI. Always the same no matter how many times I tried in the past week.

```auto
┌─────────────────────────────────────────┤ DietPi-Software ├─────────────────────────────────────────┐
│ - Command: docker run -d -p 9002:9000 --name=portainer --restart=always -v │
│ /run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce │
│ - Exit code: 125 │
│ - DietPi version: v8.14.2 (MichaIng/master) | HW_MODEL: 21 | HW_ARCH: 10 | DISTRO: 6 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: from scratch │
│ - Error log: │
│ Unable to find image 'portainer/portainer-ce:latest' locally │
│ docker: Error response from daemon: Get │
│ "https://registry-1.docker.io/v2/portainer/portainer-ce/manifests/sha256:9fa1ec78b4e29d83593cf97206 │
│ 74b72829c9cdc0db7083a962bc30e64e27f64e": dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: │
│ no such host. │
│ │
│ Retry : Re-run the last command that failed │
│ DietPi-Config : Edit network, APT/NTP mirror settings etc │
│ Open subshell : Open a subshell to investigate or solve the issue │
│ Send report : Uploads bugreport containing system info to DietPi │
│ ●─ Devs only ──────────────────────────────────────● │
│ Change command : Adjust and rerun the command │
│ │
│ │
│ <Ok> <Exit> │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────

```

console output:

```auto
Step: Installing Portainer: Simplifies container management in Docker (standalone host)

[OK] DietPi-Software | docker volume create portainer_data
[INFO] DietPi-Software | Portainer will be deployed now. This could take a while...
[INFO] DietPi-Software | docker run -d -p 9002:9000 --name=portainer --restart=always -v /run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce, please wait...
Unable to find image 'portainer/portainer-ce:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/portainer/portainer-ce/manifests/sha256:9fa1ec78b4e29d83593cf9720674b72829c9cdc0db7083a962bc30e64e27f64e": dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: no such host.
See 'docker run --help'.
[FAILED] DietPi-Software | docker run -d -p 9002:9000 --name=portainer --restart=always -v /run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
[INFO] DietPi-Software | docker run -d -p 9002:9000 --name=portainer --restart=always -v /run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce, please wait...
Unable to find image 'portainer/portainer-ce:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/portainer/portainer-ce/manifests/sha256:9fa1ec78b4e29d83593cf9720674b72829c9cdc0db7083a962bc30e64e27f64e": dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: no such host.
See 'docker run --help'.
[FAILED] DietPi-Software | docker run -d -p 9002:9000 --name=portainer --restart=always -v /run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
[INFO] DietPi-BugReport | Generating informative command outputs, please wait...
/boot/dietpi/dietpi-bugreport: line 138: aplay: command not found
/boot/dietpi/dietpi-bugreport: line 138: aplay: command not found
Warning: The unit file, source configuration file or drop-ins of docker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of docker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[INFO] DietPi-BugReport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT, please wait...
[OK] DietPi-BugReport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT
[OK] DietPi-BugReport | Packing upload archive
[OK] DietPi-BugReport | Sending bug report
[OK] DietPi-BugReport | Your bug report has been successfully uploaded.
- Reference code: 8b6d47d7-097c-4a2b-9a5f-cd5415be7eba

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [25 February 2023 07:34 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/6 "2023-02-25T07:34:25Z")

</div>

> [@maya95](#):
>
> `tcp: lookup registry-1.docker.io on 192.168.1.1:53: no such host`

@maya95 your issue seems to be completly different. Looks like a DNS issue as you are not able to resolve `registry-1.docker.io`

You could try to pull the image directly.

```auto
docker pull portainer/portainer-ce:latest

```

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [25 February 2023 09:27 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/7 "2023-02-25T09:27:38Z")

</div>

There is no issue running nslookup for [registry-1.docker.io](http://registry-1.docker.io)  
Why wouldn’t it work?

```auto
root@DietPi:~# nslookup
> server 192.168.1.1
Default server: 192.168.1.1
Address: 192.168.1.1#53
> registry-1.docker.io
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
Name: registry-1.docker.io
Address: 44.205.64.79
Name: registry-1.docker.io
Address: 3.216.34.172
Name: registry-1.docker.io
Address: 34.205.13.154

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [25 February 2023 09:55 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/8 "2023-02-25T09:55:07Z")

</div>

> [@maya95](#):
>
> Why wouldn’t it work?

I don’t know but this is what your error messages is telling. Did you tried

```auto
docker pull portainer/portainer-ce:latest

```

---

<div class="post-metadata">

### Author: ![cptechnik](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@cptechnik](https://dietpi.com/forum/u/cptechnik)
#### Post date: [9 March 2023 06:20 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/9 "2023-03-09T06:20:43Z")

</div>

just hanging on…

i installed fresh dietpi on a nuc (Native PC for BIOS/CSM),  
then docker portainer … crash

wipe, install dietpi,  
install docker, docker portainer… crash…

… ehm…  
what should i have done wrong, when i have done nothing else…?

 ![IMG_20230306_015943540](https://dietpi.com/forum/uploads/default/original/2X/e/e68ba58040affe2d9552775d200935abfe4fbe1d.jpeg)  
 ![IMG_20230306_015926897](https://dietpi.com/forum/uploads/default/original/2X/2/21b75db2c5de6f22b9ca209e137e43a0d40b3449.jpeg)

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [9 March 2023 07:00 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/10 "2023-03-09T07:00:13Z")

</div>

Maybe related to this:  
[https://github.com/MichaIng/DietPi/issues/6126](https://github.com/MichaIng/DietPi/issues/6126)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 March 2023 07:43 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/11 "2023-03-09T07:43:20Z")

</div>

> [@cptechnik](#):
>
> what should i have done wrong

usually, the search function should have reviled following

- [Ever since moving to 8.14.2 I get major docker issues - #2 by Joulinar](https://dietpi.com/forum/t/ever-since-moving-to-8-14-2-i-get-major-docker-issues/16158/2)
- [Portainer keeps restarting after update to latest docker version - #31 by Joulinar](https://dietpi.com/forum/t/portainer-keeps-restarting-after-update-to-latest-docker-version/15848/31)
- [Portainer Fails to Launch, Install, or Re-Install [SOLVED] - #2 by Joulinar](https://dietpi.com/forum/t/portainer-fails-to-launch-install-or-re-install-solved/15862/2)
- [After dietpi update docker does not start - #9 by Joulinar](https://dietpi.com/forum/t/after-dietpi-update-docker-does-not-start/15826/9)

---

<div class="post-metadata">

### Author: ![holocron](https://dietpi.com/forum/user_avatar/dietpi.com/holocron/32/2622_2.png) [@holocron](https://dietpi.com/forum/u/holocron)
#### Post date: [9 March 2023 12:08 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/12 "2023-03-09T12:08:28Z")

</div>

Do you have anything else running on the RPi? Pihole? Unbound?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 March 2023 14:36 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/13 "2023-03-09T14:36:42Z")

</div>

> [@holocron](#):
>
> Do you have anything else running on the RPi?

its a Native PC and not an RPi. On x86 Docker has some challenges with missing Apparmor tool. Something Docker guys are aware and hopefully gonna change in future. As workaround you can install Apparmor.

> [@holocron](#):
>
> Pihole? Unbound?

There should be no relation between the issue to start container on x86 and local DNS server tools.

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [10 March 2023 05:17 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/14 "2023-03-10T05:17:06Z")

</div>

Yep. It’s AppArmor causing the problem. Although I did not see AppArmor error message and the error message always was “dial tcp: lookup [registry-1.docker.io](http://registry-1.docker.io) on xx.xx.xx.xx:53: │  
│ no such host.”

I tried to use different DNS settings (Google, Cloudflare, Pi-Hole, Technitium) or use a real PC yet nothing worked.

> [@Portainer Fails to Launch, Install, or Re-Install \[SOLVED\]](https://dietpi.com/forum/t/portainer-fails-to-launch-install-or-re-install-solved/15862):
>
> Workaround: apt install apparmor systemctl disable --now apparmor Also, check out the links provided by Joulinar below… Summary: I noticed a similiar Troubleshooting topic made by someone in this forum, but it doesn’t seem like the same thing so I am posting my issue as well… although he mentions AppArmor as being a potential issue, and as you can see in the logs below AppArmor also seems to be causing havoc? Details: Date | Mon Feb 6 16:01:47 CST 2023 Bug report | 1c7734…

apply the following 2 commands at the console then reinstall Portainer and the installation finally went through without error

> apt install apparmor  
> systemctl disable --now apparmor

---

<div class="post-metadata">

### Author: ![cptechnik](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@cptechnik](https://dietpi.com/forum/u/cptechnik)
#### Post date: [10 March 2023 08:29 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/15 "2023-03-10T08:29:07Z")

</div>

> [@maya95](#):
>
> apply the following 2 commands at the console then reinstall Portainer and the installation finally went through without error
> 
> > apt install apparmor  
> > systemctl disable --now apparmor

the installation runs through… i am watch out for the rest…

thank you very much @maya95 !!!

post-scriptum: “Welcome to Portainer” …well done…

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [11 March 2023 03:16 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/16 "2023-03-11T03:16:04Z")

</div>

I deleted the DietPi VM and redid the Docker & Portainer installation

Found that not only I have to install apparmor then disable it, I still have to change default DNS that’s issued by router DHCP (which usually will forward to ISP’s DNS) to one of the public DNS, otherwise the Portainer installation will still fail.

There are tons of name resolution issue postings all over the internet for Docker image pulls for different reasons.

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [13 March 2023 03:21 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/17 "2023-03-13T03:21:54Z")

</div>

You can install pihole and unbound…then point all your DHCP addresses issued to that machine (wether bare metal or docker)…and it will resolve DNS thru your network…

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [28 March 2023 19:51 UTC](https://dietpi.com/forum/t/docker-portainer-with-errors/6360/18 "2023-03-28T19:51:08Z")

</div>

Finally, Docker 23.0.2 has been released fixing the issue on x86 [Docker Engine 23.0 release notes](https://docs.docker.com/engine/release-notes/23.0/#2302)
