Weird output for docker ps

Hi,
I don’t remember touching anything, but for some reason I get this when trying to list running containers:

$ docker ps
CONTAINER ID   IMAGE                                 COMMAND   CREATED       STATUS              PORTS     NAMES
264d7731262e   homeassistant/home-assistant:stable   "/init"   4 weeks ago   Up About a minute             homeassistant
$ docker ps -a
CONTAINER ID   IMAGE                                             COMMAND   CREATED          STATUS                            PORTS             NAMES
cadcdc40cccd   lscr.io/linuxserver/calibre-web                   "/init"   7 minutes ago    Created                                             calibre-web
49ab6f62c0ac   lscr.io/linuxserver/jellyfin                      "/init"   7 minutes ago    Created                                             jellyfin
04577dd3003c   linuxserver/wireguard                             "/init"   7 minutes ago    Created                                             wireguard
23a206326915   linuxserver/mariadb:version-110.4.21mariabionic   "/init"   7 minutes ago    Created                                             mariadb
d05a89b7db7f   lscr.io/linuxserver/endlessh                      "/init"   7 minutes ago    Created                                             endlessh
59c901f68d96   linuxserver/swag                                  "/init"   7 minutes ago    Created                                             swag
6d6438a011e6   ghcr.io/linuxserver/piwigo                        "/init"   18 minutes ago   Exited (0) 2 minutes ago                            piwigo
de8c8e439b42   lscr.io/linuxserver/dokuwiki                      "/init"   18 minutes ago   Exited (255) About a minute ago   80/tcp, 443/tcp   dokuwiki
264d7731262e   homeassistant/home-assistant:stable               "/init"   4 weeks ago      Up About a minute                                   homeassistant

I only get homeassistant when I don’t use the -a flag.

Also, when I try to docker-compose down and docker-compose up -d, I get this:

$ docker-compose down
Stopping homeassistant ... error

ERROR: for homeassistant  cannot stop container: 264d7731262ecab046c0c9dd7502f929bf746ec9fe5b4b40e7286e5af8e5d6c1: permission denied
Removing calibre-web   ... done
Removing jellyfin      ... done
Removing wireguard     ... done
Removing mariadb       ... done
Removing endlessh      ... done
Removing swag          ... done
Removing piwigo        ... done
Removing dokuwiki      ... done
Removing network docker_default

$ docker-compose up -d
Creating network "docker_default" with the default driver
Creating wireguard ... 
Creating mariadb   ... 
Creating mariadb         ... error
Creating dokuwiki  ... 
Creating jellyfin  ... 
Recreating homeassistant ... 
Creating piwigo          ... 
Creating wireguard       ... error
Creating calibre-web     ... 
WARNING: Host is already in use by another container

ERROR: for mariadb  Cannot start service mariadb: driver failed programming external connectivity on endpoint mariadb (56db5aa41daf1f1bfe9c23784c2790db1f4ba40f009dcf3d33c0ec81314d3cec): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
Creating swag            ... error

ERROR: for wireguard  Cannot start service wireguard: driver failed programming external connectivity on endpoint wireguard (bd788351a2a886f781bbc48e2da613bd133747219e3b493e69368056e96f0f71): Error starting userland proxy: listen udp40.0.0.0:51820: bind: address already in use
WARNING: Host is already in use by another container

ERROR: for swag  Cannot start service swag: driver failed programming externalconnectivity on endpoint swag (f3bd06971e13b3d85c62edcb75bffac1c484130568b70c4587a2dec10b3001a9): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use
Creating dokuwiki        ... done

ERROR: for calibre-web  Cannot start service calibre-web: driver failed programming external connectivity on endpoint calibre-web (73f163716b47aad6bd471c1381b4da3652cb0de7118acb376a27ea5af34bb367): Error starting userland proxy: listeCreating endlessh        ... error
WARNING: Host is already in use by another container

Creating jellyfin        ... error
external connectivity on endpoint endlessh (902e10fe48b063c3534ad7632a2cdba23784904468dae346066d85a9a7c1f450): Error starting userland proxy: listen tcp4 0.0.0.0:666: bind: address already in use
WARNING: Host is already in use by another container

Recreating homeassistant ... error
Creating piwigo          ... done
729b18f6d699e4a97d28aea26ab359): Error starting userland proxy: listen tcp4 0.0.0.0:8920: bind: address already in use

ERROR: for homeassistant  cannot stop container: 264d7731262ecab046c0c9dd7502f929bf746ec9fe5b4b40e7286e5af8e5d6c1: permission denied

ERROR: for mariadb  Cannot start service mariadb: driver failed programming external connectivity on endpoint mariadb (56db5aa41daf1f1bfe9c23784c2790db1f4ba40f009dcf3d33c0ec81314d3cec): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

ERROR: for wireguard  Cannot start service wireguard: driver failed programming external connectivity on endpoint wireguard (bd788351a2a886f781bbc48e2da613bd133747219e3b493e69368056e96f0f71): Error starting userland proxy: listen udp40.0.0.0:51820: bind: address already in use

ERROR: for swag  Cannot start service swag: driver failed programming externalconnectivity on endpoint swag (f3bd06971e13b3d85c62edcb75bffac1c484130568b70c4587a2dec10b3001a9): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use

ERROR: for calibre-web  Cannot start service calibre-web: driver failed programming external connectivity on endpoint calibre-web (73f163716b47aad6bd471c1381b4da3652cb0de7118acb376a27ea5af34bb367): Error starting userland proxy: listen tcp4 0.0.0.0:8083: bind: address already in use

ERROR: for endlessh  Cannot start service endlessh: driver failed programming external connectivity on endpoint endlessh (902e10fe48b063c3534ad7632a2cdba23784904468dae346066d85a9a7c1f450): Error starting userland proxy: listen tcp4 0.0.0.0:666: bind: address already in use

ERROR: for jellyfin  Cannot start service jellyfin: driver failed programming external connectivity on endpoint jellyfin (4d23cad6140b66bdf7b91ad981c595af55729b18f6d699e4a97d28aea26ab359): Error starting userland proxy: listen tcp4 0.0.0.0:8920: bind: address already in use

ERROR: for homeassistant  cannot stop container: 264d7731262ecab046c0c9dd7502f929bf746ec9fe5b4b40e7286e5af8e5d6c1: permission denied
ERROR: Encountered errors while bringing up the project.

This is my docker-compose: PrivateBin

Docker logs give me nothing (there is no output for any docker logs command):

$ docker logs swag
$

Also, I just noticed this: I can access my nextcloud normally, but nextcloud container is not listed even with docker ps -a.

What could I try next? Thanks.

ps shows running containers ps -a shows all containers.

Docker-compose is complaining about the ports being taken up, likely because you have a bunch of stopped containers.

Stop and remove all, and then do up -d. If it still doesn’t work, check your compose yaml