Docker failed to setup nextcloud-aio-mastercontainer; how to fix?
09:58 06 Mar 2026

During the NextCloud AIO installation process, I first install Docker, which works as verififed by hello_world, but after running step 3, I get the following error:

docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint nextcloud-aio-mastercontainer (efb1272996b34c713eae46dfacd28bf1313b7852b46a0eae8991a61f106c6dec): failed to bind host port 0.0.0.0:80/tcp: address already in use

[sudo docker ps -a] results in (none for port):

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

e7f52142a028 ghcr.io/nextcloud-releases/all-in-one:latest "/start.sh" 6 minutes ago Created nextcloud-aio-mastercontainer

f0f6e8490cb1 hello-world "/hello" 7 minutes ago Exited (0) 7 minutes ago vibrant_mirzakhani

But when I enter the URLs (step 4) into browser or terminal there's no response.

3. Now, open the Terminal and start AIO with this command:

# For Linux and without a web server or reverse proxy (like Apache, Nginx and else) already in place:
sudo docker run \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
ghcr.io/nextcloud-releases/all-in-one:latest

4. Next, you can open the AIO interface on https://localhost:8080 or https://the.servers.ip.address:8080.

What exactly am I doing wrong, and how do I fix it?

I'm not wanting a full blown installation, only enough to have a look around, and store files locally on my laptop.

docker containers port driver nextcloud