-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
576 lines (471 loc) · 23.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
<!DOCTYPE html>
<html lang="zh-cmn-Hans" prefix="og: http://ogp.me/ns#" class="han-init">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>KevinGuo</title>
<link rel="stylesheet" href="/assets/vendor/primer-css/css/primer.css">
<link rel="stylesheet" href="/assets/vendor/primer-markdown/dist/user-content.min.css">
<link rel="stylesheet" href="/assets/vendor/octicons/octicons/octicons.css">
<link rel="stylesheet" href="/assets/css/components/collection.css">
<link rel="stylesheet" href="/assets/css/components/repo-card.css">
<link rel="stylesheet" href="/assets/css/sections/repo-list.css">
<link rel="stylesheet" href="/assets/css/sections/mini-repo-list.css">
<link rel="stylesheet" href="/assets/css/components/boxed-group.css">
<link rel="stylesheet" href="/assets/css/globals/common.css">
<link rel="stylesheet" href="/assets/vendor/share.js/dist/css/share.min.css">
<link rel="stylesheet" href="/assets/css/globals/responsive.css">
<link rel="stylesheet" href="/assets/css/posts/index.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="/assets/css/pages/index.css">
<link rel="canonical" href="https://kevinguo.me/page5/">
<link rel="alternate" type="application/atom+xml" title="KevinGuo" href="/feed.xml">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="keywords" content="KevinGuo">
<meta name="description" content="KevinGuo's blog">
<meta property="og:url" content="https://kevinguo.me/page5/">
<meta property="og:site_name" content="KevinGuo">
<meta property="og:type" content="article">
<meta property="og:locale" content="zh_CN" />
<script src="/assets/vendor/jquery/dist/jquery.min.js"></script>
<script src="/assets/js/jquery-ui.js"></script>
<script type="text/javascript">
function toggleMenu() {
var nav = document.getElementsByClassName("site-header-nav")[0];
if (nav.style.display == "inline-flex") {
nav.style.display = "none";
} else {
nav.style.display = "inline-flex";
}
}
</script>
</head>
<body class="home" data-mz="home">
<header class="site-header">
<div class="container">
<h1><a href="/" title="KevinGuo"><span class="octicon octicon-mark-github"></span> KevinGuo</a></h1>
<button class="collapsed mobile-visible" type="button" onclick="toggleMenu();">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<nav class="site-header-nav" role="navigation">
<a href="/" class=" site-header-nav-item" target="" title="首页">首页</a>
<a href="/categories/" class=" site-header-nav-item" target="" title="分类">分类</a>
<a href="/wiki/" class=" site-header-nav-item" target="" title="维基">维基</a>
<a href="/open-source/" class=" site-header-nav-item" target="" title="开源">开源</a>
<a href="/links/" class=" site-header-nav-item" target="" title="链接">链接</a>
<a href="/about/" class=" site-header-nav-item" target="" title="关于">关于</a>
</nav>
</div>
</header>
<!-- / header -->
<section class="banner">
<div class="collection-head">
<div class="container">
<div class="collection-title">
<h1 class="collection-header" id="sub-title"><span>Just do it now !</span></h1>
<div class="collection-info">
<span class="meta-info mobile-hidden">
<span class="octicon octicon-location"></span>
Wuhan, China
</span>
<span class="meta-info">
<span class="octicon octicon-organization"></span>
<a href="https://www.thoughtworks.com/" target="_blank">Thoughtworks,Inc.</a>
</span>
<span class="meta-info">
<span class="octicon octicon-mark-github"></span>
<a href="https://github.com/chinakevinguo" target="_blank">chinakevinguo</a>
</span>
</div>
</div>
</div>
</div>
</section>
<!-- /.banner -->
<section class="container content">
<div class="columns">
<div class="column two-thirds" >
<ol class="repo-list">
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-install-docker-compose/">Docker基础-docker compose安装</a>
</h3>
<p class="repo-list-description">
你可以在macOS,windows 和64位的linux系统上运行compose。在安装它之前,你需要先安装docker。
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-getting-started-compose/">Docker基础-docker compose基础知识</a>
</h3>
<p class="repo-list-description">
这一章,我们构建一个在docker compose上运行的简单python web程序。该应用使用Flask框架并在redis中维护一个命中计数器。
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-format-command-and-log-output/">Docker基础-docker 日志输出的格式化</a>
</h3>
<p class="repo-list-description">
docker 使用Go template来允许用户操作某些命令和日志的输出格式。详细如下:
Docker Images formatting
Docker Inspect formatting
Docker Log Tag formatting
Docker Network Inspect formatting
Docker ps formatting
Docker Volume Inspect formatting
Docker Version formatting
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-extending-services-in-compose/">Docker基础-docker compose配置共享</a>
</h3>
<p class="repo-list-description">
compose 支持两种方式来共享通用配置:
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-environment-file/">Docker基础-docker在文件中声明默认环境变量</a>
</h3>
<p class="repo-list-description">
compose 支持在名为.env的文件中声明默认环境变量,该文件和docker-compose.yml文件在同样的目录 (即docker-compose命令执行的目录)
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-custom-docker0/">Docker基础-docker自定义bridge网络</a>
</h3>
<p class="repo-list-description">
本章节主要讲了如何自定义docker默认的bridge网络,这个bridge网络是在docker安装的时候,系统默认创建的。
Note: docker允许创建除了默认bridge网络之外的bridge网络
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-control-and-configure-docker-with-systemd/">Docker基础-自定义docker daemon</a>
</h3>
<p class="repo-list-description">
很多linux发行版使用systemd来启动docker daemon。这篇文档主要介绍了几个例子来展示如何自定义docker 的设置。
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="/2017/07/06/Docker-container-networking/">Docker基础-docker网络</a>
</h3>
<p class="repo-list-description">
Docker container networking
</p>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> 2017/07/06
</span>
<span class="meta-info">
<span class="octicon octicon-file-directory"></span>
<a href="/categories/#docker" title="docker">docker</a>
</span>
</p>
</li>
</ol>
</div>
<div class="column one-third">
<h3>Search</h3>
<div id="site_search">
<input type="text" id="search_box" placeholder="Search">
<button class="btn btn-default" id="site_search_do"><span class="octicon octicon-search"></span></button>
</div>
<ul id="search_results"></ul>
<link rel="stylesheet" type="text/css" href="/assets/css/modules/sidebar-search.css">
<script src="/assets/js/lunr.min.js"></script>
<script src="/assets/js/search.js"></script>
<h3>My Popular Repositories</h3>
<a href="https://github.com/chinakevinguo/kubernetes-custom" target="_blank" class="card text-center">
<div class="thumbnail">
<div class="card-image geopattern" data-pattern-id="kubernetes-custom">
<div class="card-image-cell">
<h3 class="card-title">
kubernetes-custom
</h3>
</div>
</div>
<div class="caption">
<div class="card-description">
<p class="card-text"></p>
</div>
<div class="card-text">
<span class="meta-info" title="3 stars">
<span class="octicon octicon-star"></span> 3
</span>
<span class="meta-info" title="0 forks">
<span class="octicon octicon-git-branch"></span> 0
</span>
<span class="meta-info" title="Last updated:2018-06-20 01:40:36 UTC">
<span class="octicon octicon-clock"></span>
<time datetime="2018-06-20 01:40:36 UTC">2018-06-20</time>
</span>
</div>
</div>
</div>
</a>
<a href="https://github.com/chinakevinguo/learn-python" target="_blank" class="card text-center">
<div class="thumbnail">
<div class="card-image geopattern" data-pattern-id="learn-python">
<div class="card-image-cell">
<h3 class="card-title">
learn-python
</h3>
</div>
</div>
<div class="caption">
<div class="card-description">
<p class="card-text"></p>
</div>
<div class="card-text">
<span class="meta-info" title="2 stars">
<span class="octicon octicon-star"></span> 2
</span>
<span class="meta-info" title="2 forks">
<span class="octicon octicon-git-branch"></span> 2
</span>
<span class="meta-info" title="Last updated:2018-05-01 08:49:41 UTC">
<span class="octicon octicon-clock"></span>
<time datetime="2018-05-01 08:49:41 UTC">2018-05-01</time>
</span>
</div>
</div>
</div>
</a>
<a href="https://github.com/chinakevinguo/learn-groovy" target="_blank" class="card text-center">
<div class="thumbnail">
<div class="card-image geopattern" data-pattern-id="learn-groovy">
<div class="card-image-cell">
<h3 class="card-title">
learn-groovy
</h3>
</div>
</div>
<div class="caption">
<div class="card-description">
<p class="card-text"></p>
</div>
<div class="card-text">
<span class="meta-info" title="1 stars">
<span class="octicon octicon-star"></span> 1
</span>
<span class="meta-info" title="1 forks">
<span class="octicon octicon-git-branch"></span> 1
</span>
<span class="meta-info" title="Last updated:2018-04-10 16:59:05 UTC">
<span class="octicon octicon-clock"></span>
<time datetime="2018-04-10 16:59:05 UTC">2018-04-10</time>
</span>
</div>
</div>
</div>
</a>
<a href="https://github.com/chinakevinguo/kubernetes-jenkins" target="_blank" class="card text-center">
<div class="thumbnail">
<div class="card-image geopattern" data-pattern-id="kubernetes-jenkins">
<div class="card-image-cell">
<h3 class="card-title">
kubernetes-jenkins
</h3>
</div>
</div>
<div class="caption">
<div class="card-description">
<p class="card-text"></p>
</div>
<div class="card-text">
<span class="meta-info" title="1 stars">
<span class="octicon octicon-star"></span> 1
</span>
<span class="meta-info" title="0 forks">
<span class="octicon octicon-git-branch"></span> 0
</span>
<span class="meta-info" title="Last updated:2018-06-07 05:11:35 UTC">
<span class="octicon octicon-clock"></span>
<time datetime="2018-06-07 05:11:35 UTC">2018-06-07</time>
</span>
</div>
</div>
</div>
</a>
<a href="https://github.com/chinakevinguo/docker-consul" target="_blank" class="card text-center">
<div class="thumbnail">
<div class="card-image geopattern" data-pattern-id="docker-consul">
<div class="card-image-cell">
<h3 class="card-title">
docker-consul
</h3>
</div>
</div>
<div class="caption">
<div class="card-description">
<p class="card-text">docker+consul+consul-template+registrator+nginx</p>
</div>
<div class="card-text">
<span class="meta-info" title="1 stars">
<span class="octicon octicon-star"></span> 1
</span>
<span class="meta-info" title="3 forks">
<span class="octicon octicon-git-branch"></span> 3
</span>
<span class="meta-info" title="Last updated:2018-06-20 02:50:26 UTC">
<span class="octicon octicon-clock"></span>
<time datetime="2018-06-20 02:50:26 UTC">2018-06-20</time>
</span>
</div>
</div>
</div>
</a>
</div>
</div>
<div class="pagination text-align">
<div class="btn-group">
<a href="/page4" class="btn btn-outline">«</a>
<a href="/" class="btn btn-outline">1</a>
<a href="/page2" class="btn btn-outline">2</a>
<a href="/page3" class="btn btn-outline">3</a>
<a href="/page4" class="btn btn-outline">4</a>
<a href="javascript:;" class="active btn btn-outline">5</a>
<a href="/page6" class="btn btn-outline">6</a>
<a href="/page7" class="btn btn-outline">7</a>
<a href="/page8" class="btn btn-outline">8</a>
<a href="/page6" class="btn btn-outline">»</a>
</div>
</div>
<!-- /pagination -->
</section>
<!-- /section.content -->
<footer class="container">
<div class="site-footer" role="contentinfo">
<div class="copyright left mobile-block">
© 2015
<span title="KevinGuo">KevinGuo</span>
<a href="javascript:window.scrollTo(0,0)" class="right mobile-visible">TOP</a>
</div>
<ul class="site-footer-links right mobile-hidden">
<li>
<a href="javascript:window.scrollTo(0,0)" >TOP</a>
</li>
</ul>
<a href="http://github.com/chinakevinguo/chinakevinguo.github.io" target="_blank" aria-label="view source code">
<span class="mega-octicon octicon-mark-github" title="GitHub"></span>
</a>
<ul class="site-footer-links mobile-hidden">
<li>
<a href="/" title="首页" target="">首页</a>
</li>
<li>
<a href="/categories/" title="分类" target="">分类</a>
</li>
<li>
<a href="/wiki/" title="维基" target="">维基</a>
</li>
<li>
<a href="/open-source/" title="开源" target="">开源</a>
</li>
<li>
<a href="/links/" title="链接" target="">链接</a>
</li>
<li>
<a href="/about/" title="关于" target="">关于</a>
</li>
<li><a href="/feed.xml"><span class="octicon octicon-rss" style="color:orange;"></span></a></li>
</ul>
</div>
</footer>
<!-- / footer -->
<script src="/assets/vendor/share.js/dist/js/share.min.js"></script>
<script src="/assets/js/geopattern.js"></script>
<script src="/assets/js/prism.js"></script>
<link rel="stylesheet" href="/assets/css/globals/prism.css">
<script>
jQuery(document).ready(function($) {
// geopattern
$('.geopattern').each(function(){
$(this).geopattern($(this).data('pattern-id'));
});
// hljs.initHighlightingOnLoad();
});
</script>
<div style="display:none">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-80669434-1', 'auto');
ga('send', 'pageview');
</script>
</div>
</body>
</html>