Docker error messages (and in general) sucks as always.
Originally I had multiple services that used a custom network, as shown here:
version: '3'
networks:
mynet:
external: true
services:
nexus-repository:
image: sonatype/nexus3
ports:
- '8082:8081'
networks:
- mynet
volumes:
- '/nexus-data:/nexus-data'
To remove the containers I tried:
sudo docker-compose down
=> NOPE
ssudo docker network remove mynet
=> NOPE
sudo docker-compose rm -sfv nexus-repository
=> NOPE
Nothing worked until I completely removed all references to the exernal network.
Solution
services:
nexus-repository:
image: sonatype/nexus3
ports:
- '8082:8081'
volumes:
- '/nexus-data:/nexus-data'
No more:
Network 'mynet' is external, skipping
And no more containers !
docker ps
still shows them as running.