• 大小: 491KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-17
  • 语言: 其他
  • 标签: docker源码  

资源简介

第一本docker书实例源码,作者修订版,第二版,更新至17年9月24日

资源截图

代码片段和文件信息

from flask import Flask
from redis import Redis
import os

app = Flask(__name__)
redis = Redis(host=“redis“ port=6379)

@app.route(‘/‘)
def hello():
    redis.incr(‘hits‘)
    return ‘Hello Docker Book reader! I have been seen {0} times‘.format(redis.get(‘hits‘))

if __name__ == “__main__“:
    app.run(host=“0.0.0.0“ debug=True)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-24 22:41  dockerbook-code-master\
     文件         272  2017-09-24 22:41  dockerbook-code-master\.gitignore
     文件         209  2017-09-24 22:41  dockerbook-code-master\README.md
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\4\
     文件         115  2017-09-24 22:41  dockerbook-code-master\code\4\Dockerfile_template
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\4\apache2\
     文件         329  2017-09-24 22:41  dockerbook-code-master\code\4\apache2\Dockerfile
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\4\sshd\
     文件         219  2017-09-24 22:41  dockerbook-code-master\code\4\sshd\Dockerfile
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\4\static_web\
     文件         192  2017-09-24 22:41  dockerbook-code-master\code\4\static_web\Dockerfile
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\4\webapp\
     文件         124  2017-09-24 22:41  dockerbook-code-master\code\4\webapp\Dockerfile
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\jenkins\
     文件         430  2017-09-24 22:41  dockerbook-code-master\code\5\jenkins\Dockerfile
     文件         838  2017-09-24 22:41  dockerbook-code-master\code\5\jenkins\dockerjenkins.sh
     文件         671  2017-09-24 22:41  dockerbook-code-master\code\5\jenkins\jenkins_multi_shell_step
     文件         643  2017-09-24 22:41  dockerbook-code-master\code\5\jenkins\jenkins_single_shell_step
     文件         197  2017-09-24 22:41  dockerbook-code-master\code\5\jenkins\plugins.txt
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\sample\
     文件         266  2017-09-24 22:41  dockerbook-code-master\code\5\sample\Dockerfile
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\sample\nginx\
     文件         286  2017-09-24 22:41  dockerbook-code-master\code\5\sample\nginx\global.conf
     文件         415  2017-09-24 22:41  dockerbook-code-master\code\5\sample\nginx\nginx.conf
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\sample\website\
     文件          95  2017-09-24 22:41  dockerbook-code-master\code\5\sample\website\index.html
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\sinatra\
     目录           0  2017-09-24 22:41  dockerbook-code-master\code\5\sinatra\redis-cli\
     文件         189  2017-09-24 22:41  dockerbook-code-master\code\5\sinatra\redis-cli\Dockerfile
............此处省略203个文件信息

评论

共有 条评论

相关资源