深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

docker/getting-started

查看数: 359 | 评论数: 4 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2024-8-3 21:13

正文摘要:

docker pull docker/getting-started docker images docker run -d -p 8090:80 docker/getting-started

回复

syant 发表于 2024-8-3 21:48:19
/ # 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:46:47
/ # 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:44:39
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
/ #

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 05:45 , Processed in 0.034565 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表