Docker步步实践
目录文档:
①Docker简介
②基本概念
③安装Docker
④使用镜像:
⑤操作容器:
⑥访问仓库:
⑦数据管理:
⑧使用网络:
⑨高级网络配置:
⑩安全:
⑪底层实现:
⑫其他项目:
“current”: false,
“max”: false,
“min”: false,
“show”: true,
“total”: false,
“values”: false
},
“lines”: true,
“linewidth”: 1,
“links”: [],
“nullPointMode”: “null”,
“percentage”: false,
“pointradius”: 5,
“points”: false,
“renderer”: “flot”,
“seriesOverrides”: [],
“span”: 3,
“stack”: false,
“steppedLine”: false,
“targets”: [
{
“expr”: “flink_taskmanager_Status_JVM_Memory_Direct_MemoryUsed”,
“hide”: false,
“intervalFactor”: 2,
“legendFormat”: “{{instance}}”,
“metric”: “flink_taskmanager_Status_JVM_Memory_Direct_MemoryUsed”,
“refId”: “A”,
“step”: 4
}
],
“thresholds”: [],
“timeFrom”: null,
“timeShift”: null,
“title”: “TaskManager Memory Used”,
“tooltip”: {
“shared”: true,
“sort”: 0,
“value_type”: “individual”
},
“type”: “graph”,
“xaxis”: {
“mode”: “time”,
“name”: null,
“show”: true,
“values”: []
},
“yaxes”: [
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
“show”: true
},
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
“show”: true
}
]
}
],
“repeat”: null,
“repeatIteration”: null,
“repeatRowId”: null,
“showTitle”: false,
“title”: “Dashboard Row”,
“titleSize”: “h6”
},
{
“collapse”: false,
“height”: 276,
“panels”: [
{
“cacheTimeout”: null,
“colorBackground”: false,
“colorValue”: true,
“colors”: [
“rgba(245, 54, 54, 0.9)”,
“rgba(255, 255, 255, 0.89)”,
“rgba(50, 172, 45, 0.97)”
],
“datasource”: “${DS_PROMETHEUS}”,
“format”: “none”,
“gauge”: {
“maxValue”: null,
“minValue”: 0,
“show”: false,
“thresholdLabels”: false,
“thresholdMarkers”: true
},
“hideTimeOverride”: false,
“id”: 3,
“interval”: null,
“links”: [],
“mappingType”: 1,
“mappingTypes”: [
{
“name”: “value to text”,
“value”: 1
},
{
“name”: “range to text”,
“value”: 2
}
],
“maxDataPoints”: 100,
“nullPointMode”: “connected”,
“nullText”: null,
“postfix”: “”,
“postfixFontSize”: “50%”,
“prefix”: “”,
“prefixFontSize”: “50%”,
“rangeMaps”: [
{
“from”: “null”,
“text”: “N/A”,
“to”: “null”
}
],
“span”: 3,
“sparkline”: {
“fillColor”: “rgba(31, 118, 189, 0.18)”,
“full”: false,
“lineColor”: “rgb(31, 120, 193)”,
“show”: true
},
“targets”: [
{
“expr”: “flink_jobmanager_taskSlotsAvailable”,
“hide”: false,
“intervalFactor”: 2,
“legendFormat”: “”,
“metric”: “flink_jobmanager_taskSlotsAvailable”,
“refId”: “A”,
“step”: 20
}
],
“thresholds”: “”,
“title”: “Taskslots available”,
“type”: “singlestat”,
“valueFontSize”: “80%”,
“valueMaps”: [
{
“op”: “=”,
“text”: “N/A”,
“value”: “null”
}
],
“valueName”: “current”
},
{
“cacheTimeout”: null,
“colorBackground”: false,
“colorValue”: true,
“colors”: [
“rgba(245, 54, 54, 0.9)”,
“rgba(255, 255, 255, 0.89)”,
“rgba(50, 172, 45, 0.97)”
],
“datasource”: “${DS_PROMETHEUS}”,
“format”: “none”,
“gauge”: {
“maxValue”: null,
“minValue”: 0,
“show”: false,
“thresholdLabels”: false,
“thresholdMarkers”: true
},
“hideTimeOverride”: false,
“id”: 4,
“interval”: null,
“links”: [],
“mappingType”: 1,
“mappingTypes”: [
{
“name”: “value to text”,
“value”: 1
},
{
“name”: “range to text”,
“value”: 2
}
],
“maxDataPoints”: 100,
“nullPointMode”: “connected”,
“nullText”: null,
“postfix”: “”,
“postfixFontSize”: “50%”,
“prefix”: “”,
“prefixFontSize”: “50%”,
“rangeMaps”: [
{
“from”: “null”,
“text”: “N/A”,
“to”: “null”
}
],
“span”: 3,
“sparkline”: {
“fillColor”: “rgba(31, 118, 189, 0.18)”,
“full”: false,
“lineColor”: “rgb(31, 120, 193)”,
“show”: true
},
“targets”: [
{
“expr”: “flink_jobmanager_taskSlotsTotal”,
“hide”: false,
“intervalFactor”: 2,
“legendFormat”: “”,
“metric”: “flink_jobmanager_taskSlotsTotal”,
“refId”: “A”,
“step”: 20
}
],
“thresholds”: “”,
“title”: “Taskslots total”,
“type”: “singlestat”,
“valueFontSize”: “80%”,
“valueMaps”: [
{
“op”: “=”,
“text”: “N/A”,
“value”: “null”
}
],
“valueName”: “current”
},
{
“cacheTimeout”: null,
“colorBackground”: false,
“colorValue”: true,
“colors”: [
“rgba(245, 54, 54, 0.9)”,
“rgba(255, 255, 255, 0.89)”,
“rgba(50, 172, 45, 0.97)”
],
“datasource”: “${DS_PROMETHEUS}”,
“format”: “none”,
“gauge”: {
“maxValue”: null,
“minValue”: 0,
“show”: false,
“thresholdLabels”: false,
“thresholdMarkers”: true
},
“hideTimeOverride”: false,
“id”: 7,
“interval”: null,
“links”: [],
“mappingType”: 1,
“mappingTypes”: [
{
“name”: “value to text”,
“value”: 1
},
{
“name”: “range to text”,
“value”: 2
}
],
“maxDataPoints”: 100,
“nullPointMode”: “connected”,
“nullText”: null,
“postfix”: “”,
“postfixFontSize”: “50%”,
“prefix”: “”,
“prefixFontSize”: “50%”,
“rangeMaps”: [
{
“from”: “null”,
“text”: “N/A”,
“to”: “null”
}
],
“span”: 3,
“sparkline”: {
“fillColor”: “rgba(251, 129, 76, 0.18)”,
“full”: false,
“lineColor”: “rgb(193, 31, 31)”,
“show”: true
},
“targets”: [
{
“expr”: “flink_jobmanager_numRegisteredTaskManagers”,
“hide”: false,
“intervalFactor”: 2,
“legendFormat”: “”,
“metric”: “flink_jobmanager_numRegisteredTaskManagers”,
“refId”: “A”,
“step”: 20
}
],
“thresholds”: “”,
“title”: “# of TaskManagers”,
“type”: “singlestat”,
“valueFontSize”: “80%”,
“valueMaps”: [
{
“op”: “=”,
“text”: “N/A”,
“value”: “null”
}
],
“valueName”: “current”
},
{
“cacheTimeout”: null,
“colorBackground”: false,
“colorValue”: true,
“colors”: [
“rgba(245, 54, 54, 0.9)”,
“rgba(255, 255, 255, 0.89)”,
“rgba(50, 172, 45, 0.97)”
],
“datasource”: “${DS_PROMETHEUS}”,
“format”: “none”,
“gauge”: {
“maxValue”: null,
“minValue”: 0,
“show”: false,
“thresholdLabels”: false,
“thresholdMarkers”: true
},
“hideTimeOverride”: false,
“id”: 8,
“interval”: null,
“links”: [],
“mappingType”: 1,
“mappingTypes”: [
{
“name”: “value to text”,
“value”: 1
},
{
“name”: “range to text”,
“value”: 2
}
],
“maxDataPoints”: 100,
“nullPointMode”: “connected”,
“nullText”: null,
“postfix”: “”,
“postfixFontSize”: “50%”,
“prefix”: “”,
“prefixFontSize”: “50%”,
“rangeMaps”: [
{
“from”: “null”,
“text”: “N/A”,
“to”: “null”
}
],
“span”: 3,
“sparkline”: {
“fillColor”: “rgba(251, 129, 76, 0.18)”,
“full”: false,
“lineColor”: “rgb(193, 31, 31)”,
“show”: true
},
“targets”: [
{
“expr”: “flink_jobmanager_numRunningJobs”,
“hide”: false,
“intervalFactor”: 2,
“legendFormat”: “”,
“metric”: “flink_jobmanager_numRunningJobs”,
“refId”: “A”,
“step”: 20
}
],
“thresholds”: “”,
“title”: “# of Running Jobs”,
“type”: “singlestat”,
“valueFontSize”: “80%”,
“valueMaps”: [
{
“op”: “=”,
“text”: “N/A”,
“value”: “null”
}
],
“valueName”: “current”
}
],
“repeat”: null,
“repeatIteration”: null,
“repeatRowId”: null,
“showTitle”: false,
“title”: “Dashboard Row”,
“titleSize”: “h6”
},
{
“collapse”: false,
“height”: 255,
“panels”: [
{
“aliasColors”: {},
“bars”: false,
“datasource”: “${DS_PROMETHEUS}”,
“fill”: 1,
“id”: 9,
“legend”: {
“avg”: false,
“current”: false,
“max”: false,
“min”: false,
“show”: true,
“total”: false,
“values”: false
},
“lines”: true,
“linewidth”: 1,
“links”: [],
“nullPointMode”: “null”,
“percentage”: false,
“pointradius”: 5,
“points”: false,
“renderer”: “flot”,
“seriesOverrides”: [],
“span”: 6,
“stack”: false,
“steppedLine”: false,
“targets”: [
{
“expr”: “flink_taskmanager_Status_JVM_GarbageCollector_G1_Young_Generation_Time”,
“intervalFactor”: 2,
“legendFormat”: “{{instance}} Young Gen Time”,
“metric”: “flink_taskmanager_Status_JVM_GarbageCollector_G1_Young_Generation_Count”,
“refId”: “A”,
“step”: 2
},
{
“expr”: “flink_taskmanager_Status_JVM_GarbageCollector_G1_Old_Generation_Time”,
“intervalFactor”: 2,
“legendFormat”: “{{instance}} Old Gen Time”,
“metric”: “flink_taskmanager_Status_JVM_GarbageCollector_G1_Young_Generation_Count”,
“refId”: “B”,
“step”: 2
}
],
“thresholds”: [],
“timeFrom”: null,
“timeShift”: null,
“title”: “TaskManagers Garbage Collection”,
“tooltip”: {
“shared”: true,
“sort”: 0,
“value_type”: “individual”
},
“type”: “graph”,
“xaxis”: {
“mode”: “time”,
“name”: null,
“show”: true,
“values”: []
},
“yaxes”: [
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
“show”: true
},
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
“show”: true
}
]
},
{
“aliasColors”: {},
“bars”: false,
“datasource”: “${DS_PROMETHEUS}”,
“fill”: 1,
“id”: 10,
“legend”: {
“avg”: false,
“current”: false,
“max”: false,
“min”: false,
“show”: true,
“total”: false,
“values”: false
},
“lines”: true,
“linewidth”: 1,
“links”: [],
“nullPointMode”: “null”,
“percentage”: false,
“pointradius”: 5,
“points”: false,
“renderer”: “flot”,
“seriesOverrides”: [],
“span”: 6,
“stack”: false,
“steppedLine”: false,
“targets”: [
{
“expr”: “flink_jobmanager_Status_JVM_GarbageCollector_Copy_Time”,
“intervalFactor”: 2,
“legendFormat”: “{{instance}} GC Copy Time”,
“metric”: “flink_jobmanager_Status_JVM_GarbageCollector_Copy_Time”,
“refId”: “A”,
“step”: 2
},
{
“expr”: “flink_jobmanager_Status_JVM_GarbageCollector_MarkSweepCompact_Time”,
“intervalFactor”: 2,
“legendFormat”: “{{instance}} GC MarkSweep Time”,
“metric”: “flink_jobmanager_Status_JVM_GarbageCollector_MarkSweepCompact_Time”,
“refId”: “B”,
“step”: 2
}
],
“thresholds”: [],
“timeFrom”: null,
“timeShift”: null,
“title”: “JobManager Garbage Collection”,
“tooltip”: {
“shared”: true,
“sort”: 0,
“value_type”: “individual”
},
“type”: “graph”,
“xaxis”: {
“mode”: “time”,
“name”: null,
“show”: true,
“values”: []
},
“yaxes”: [
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
最后
各位读者,由于本篇幅度过长,为了避免影响阅读体验,下面我就大概概括了整理了
e
}
]
},
{
“aliasColors”: {},
“bars”: false,
“datasource”: “${DS_PROMETHEUS}”,
“fill”: 1,
“id”: 10,
“legend”: {
“avg”: false,
“current”: false,
“max”: false,
“min”: false,
“show”: true,
“total”: false,
“values”: false
},
“lines”: true,
“linewidth”: 1,
“links”: [],
“nullPointMode”: “null”,
“percentage”: false,
“pointradius”: 5,
“points”: false,
“renderer”: “flot”,
“seriesOverrides”: [],
“span”: 6,
“stack”: false,
“steppedLine”: false,
“targets”: [
{
“expr”: “flink_jobmanager_Status_JVM_GarbageCollector_Copy_Time”,
“intervalFactor”: 2,
“legendFormat”: “{{instance}} GC Copy Time”,
“metric”: “flink_jobmanager_Status_JVM_GarbageCollector_Copy_Time”,
“refId”: “A”,
“step”: 2
},
{
“expr”: “flink_jobmanager_Status_JVM_GarbageCollector_MarkSweepCompact_Time”,
“intervalFactor”: 2,
“legendFormat”: “{{instance}} GC MarkSweep Time”,
“metric”: “flink_jobmanager_Status_JVM_GarbageCollector_MarkSweepCompact_Time”,
“refId”: “B”,
“step”: 2
}
],
“thresholds”: [],
“timeFrom”: null,
“timeShift”: null,
“title”: “JobManager Garbage Collection”,
“tooltip”: {
“shared”: true,
“sort”: 0,
“value_type”: “individual”
},
“type”: “graph”,
“xaxis”: {
“mode”: “time”,
“name”: null,
“show”: true,
“values”: []
},
“yaxes”: [
{
“format”: “short”,
“label”: null,
“logBase”: 1,
“max”: null,
“min”: null,
最后
各位读者,由于本篇幅度过长,为了避免影响阅读体验,下面我就大概概括了整理了
[外链图片转存中…(img-YjB4rmWR-1715273257776)]
[外链图片转存中…(img-OlOrQ1Mh-1715273257776)]
[外链图片转存中…(img-g92m1wig-1715273257776)]
[外链图片转存中…(img-8L3Sn8rW-1715273257777)]