2021年3月31日星期三

docker ps command returns nothing

enter image description hereI'm using a docker container for jenkins and successfully came to the 'docker-compose up -d' step which returned 'starting jenkins.. done'

I now tried 'docker ps' which returns empty.

On trying 'docker images', it returned the jenkins image in the list.

Can you please tell me why this is happening and possible solutions? I'm doing the entire process as the root user.

The docker-compose.yml file looks like this:

version: '3'  services:    jenkins:      container_name: jenkins      image: jenkins/jenkins      ports:        - "8080:8080"      volumes:        - "$PWD/jenkins_home:/var/jenkins_home"      networks:        - net  networks:    net:  
https://stackoverflow.com/questions/66898261/docker-ps-command-returns-nothing April 01, 2021 at 12:03PM

没有评论:

发表评论