# Removing docker doesn't remove interfaces

**URL:** https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608
**Category:** Troubleshooting
**Created:** [17 January 2023 07:51 UTC](https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608 "2023-01-17T07:51:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DietCH](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@DietCH](https://dietpi.com/forum/u/DietCH)
#### Post date: [17 January 2023 07:51 UTC](https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608/1 "2023-01-17T07:51:49Z")

</div>

On a fresh install of latest version of DietPi (8.13.2) I installed with `dietpi-software` docker-compose (which also installed Docker as a dependency).

I further installed Mosquitto (a MQTT Broker) with its [docker-compose file found here](https://github.com/vvatelot/mosquitto-docker-compose/blob/main/docker-compose.yaml)

I then wanted to remove everything, went back to `dietpi-software` to uninstall Docker-compose (and Docker); the script did its work, but left the docker interfaces (docker0 and the bridge interface).  
I had to manually remove those docker interfaces with:

```auto
sudo ip link delete docker0
sudo ip link delete br-438d3d68797e

```

My question is: should the` dietpi-software` uninstall script not have taken care of those?

---

<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: [17 January 2023 08:04 UTC](https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608/2 "2023-01-17T08:04:07Z")

</div>

Did you tried to reboot the system after removing Docker? Did you removed Docker as software option explicitly or just Docker-Compose with the hope it will remove Docker as well?

---

<div class="post-metadata">

### Author: ![DietCH](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@DietCH](https://dietpi.com/forum/u/DietCH)
#### Post date: [17 January 2023 08:15 UTC](https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608/3 "2023-01-17T08:15:34Z")

</div>

No reboot after uninstalling.  
I explicitly chose to remove both Docker-Compose and Docker.

---

<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: [17 January 2023 14:12 UTC](https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608/4 "2023-01-17T14:12:47Z")

</div>

ok just tested. A reboot would have cleaned this up.

---

<div class="post-metadata">

### Author: ![DietCH](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@DietCH](https://dietpi.com/forum/u/DietCH)
#### Post date: [17 January 2023 14:24 UTC](https://dietpi.com/forum/t/removing-docker-doesnt-remove-interfaces/15608/5 "2023-01-17T14:24:14Z")

</div>

Thanks Joulinar. Maybe the script could suggest a reboot in this case or even force one? I don’t know what is the common practice in these cases?
