linux-command 项目的Github地址:https://github.com/jaywcjlove/linux-command
看下下文命令附上了拉取镜像、启动镜像的命令
[root@VM-4-14-centos ~]# docker pull wcjiang/linux-command
Using default tag: latest
latest: Pulling from wcjiang/linux-command
66075c0cb3a1: Pull complete
d3b8bfc32667: Pull complete
26fecaa44b12: Pull complete
f16d992a8914: Pull complete
795cc2a300e8: Pull complete
Digest: sha256:27c0aa851c786b91923bd3eb0934a4bf4839bc26ee28ae5aee693ffe8a3dd995
Status: Downloaded newer image for wcjiang/linux-command:latest
docker.io/wcjiang/linux-command:latest
[root@VM-4-14-centos ~]#
[root@VM-4-14-centos ~]#
[root@VM-4-14-centos ~]#
[root@VM-4-14-centos ~]# docker run --name linux-command -itd -p 9665:3000 wcjiang/linux-command:latest
b408970c5ebba4d82478a4c84a418420936b906746b3da9d614537cde0fd11d5
Nginx配置如下:
server
{
listen 80;
server_name linux.zanglikun.com;
index index.php index.html index.htm default.php default.htm default.html;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:9665/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
access_log /www/wwwlogs/linux.zanglikun.com.log;
error_log /www/wwwlogs/linux.zanglikun.com.error.log;
}
您可以使用:http://linux.zanglikun.com 来查看!
linux-command演示
搜索tail试试
具体就自己玩吧!
特殊说明: 上述文章均是作者实际操作后产出。烦请各位,请勿直接盗用!转载记得标注原文链接:www.zanglikun.com
第三方平台不会及时更新本文最新内容。如果发现本文资料不全,可访问本人的Java博客搜索:标题关键字。以获取全部资料 ❤
第三方平台不会及时更新本文最新内容。如果发现本文资料不全,可访问本人的Java博客搜索:标题关键字。以获取全部资料 ❤