标题: docker/getting-started [打印本页] 作者: syant 时间: 2024-8-3 21:13 标题: docker/getting-started docker pull docker/getting-started
docker images
docker run -d -p 8090:80 docker/getting-started 作者: syant 时间: 2024-8-3 21:44 C:\Users\syant>docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker/getting-started latest 26d80cd96d69 2 years ago 28.5MB
C:\Users\syant>docker run -d -p 8090:80 docker/getting-started
9d86eb5cc5aa17a1315026f6f3f132702a8fd79f775ec6a79203e6def4c77728
C:\Users\syant>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9d86eb5cc5aa docker/getting-started "/docker-entrypoint.…" 7 minutes ago Up 7 minutes 0.0.0.0:8090->80/tcp jovial_bell
C:\Users\syant>docker exec -it 9d86eb5cc5aa /bin/sh
/ # ls
bin etc mnt run tmp
dev home opt sbin usr
docker-entrypoint.d lib proc srv var
docker-entrypoint.sh media root sys
/ # 作者: syant 时间: 2024-8-3 21:46 / # uname -a
Linux 9d86eb5cc5aa 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 Linux作者: syant 时间: 2024-8-3 21:48 / # ps -ef
PID USER TIME COMMAND
1 root 0:00 nginx: master process nginx -g daemon off;
32 nginx 0:00 nginx: worker process
33 nginx 0:00 nginx: worker process
34 nginx 0:00 nginx: worker process
35 nginx 0:00 nginx: worker process
36 nginx 0:00 nginx: worker process
37 nginx 0:00 nginx: worker process
38 nginx 0:00 nginx: worker process
39 nginx 0:00 nginx: worker process
40 nginx 0:00 nginx: worker process
41 nginx 0:00 nginx: worker process
42 nginx 0:00 nginx: worker process
43 nginx 0:00 nginx: worker process
51 root 0:00 /bin/sh
60 root 0:00 ps -ef
/ #作者: syant 时间: 2024-8-3 21:50