(Visited 44 times, 1 visits today)
# Docker show containers
docker ps
#To show Swarm
docker service ls
docker service ps myservice
or docker ps
# Show compose containers – Go to folder and run
docker-compose ps
or docker ps
#To show Docker-compose stack
Go to folder and run
docker stack ps
Notes – docker ps wont show containers in stack
#show ports used
sudo lsof -i TCP:9090
sudo lsof -i
grep 9090 less /etc/services
Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.