📝 Docker containers run in the background https://github.com/siyuan-note/siyuan/pull/9602

This commit is contained in:
Daniel 2023-11-08 22:08:07 +08:00
parent 25c656a88a
commit e6ad79b050
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 39 additions and 27 deletions

View file

@ -6,7 +6,7 @@
"id": "20201227201128-m1wrouw", "id": "20201227201128-m1wrouw",
"title": "Docker hosting", "title": "Docker hosting",
"type": "doc", "type": "doc",
"updated": "20230406105617" "updated": "20231108220523"
}, },
"Children": [ "Children": [
{ {
@ -396,7 +396,7 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20210301202938-prn2v5a", "id": "20210301202938-prn2v5a",
"updated": "20210824203825" "updated": "20231108220518"
}, },
"Children": [ "Children": [
{ {
@ -417,7 +417,11 @@
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
"TextMarkType": "code", "TextMarkType": "code",
"TextMarkTextContent": "docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container" "TextMarkTextContent": "docker run -d -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container"
},
{
"Type": "NodeText",
"Data": ""
} }
] ]
}, },
@ -519,7 +523,7 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20201227201751-yyfayag", "id": "20201227201751-yyfayag",
"updated": "20211112103126" "updated": "20231108220523"
}, },
"Children": [ "Children": [
{ {
@ -533,7 +537,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": " and " "Data": " and "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -542,7 +546,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": " are configured as " "Data": " are configured as "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -551,16 +555,16 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": ", the corresponding startup commands is: " "Data": ", the corresponding startup commands is: "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
"TextMarkType": "code", "TextMarkType": "code",
"TextMarkTextContent": "docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/" "TextMarkTextContent": "docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/"
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "." "Data": "."
} }
] ]
}, },

View file

@ -6,7 +6,7 @@
"id": "20201227173504-847cs1q", "id": "20201227173504-847cs1q",
"title": "Docker 伺服", "title": "Docker 伺服",
"type": "doc", "type": "doc",
"updated": "20230406105236" "updated": "20231108220452"
}, },
"Children": [ "Children": [
{ {
@ -396,7 +396,7 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20210301201353-sffb1m7", "id": "20210301201353-sffb1m7",
"updated": "20210824203629" "updated": "20231108220447"
}, },
"Children": [ "Children": [
{ {
@ -417,7 +417,11 @@
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
"TextMarkType": "code", "TextMarkType": "code",
"TextMarkTextContent": "docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container" "TextMarkTextContent": "docker run -d -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container"
},
{
"Type": "NodeText",
"Data": ""
} }
] ]
}, },
@ -523,7 +527,7 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20201227194509-hdnzkry", "id": "20201227194509-hdnzkry",
"updated": "20211112103117" "updated": "20231108220452"
}, },
"Children": [ "Children": [
{ {
@ -537,7 +541,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": " 和 " "Data": " 和 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -546,7 +550,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": " 都配置为 " "Data": " 都配置为 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -555,16 +559,16 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": ",对应的启动命令示例:" "Data": ",对应的启动命令示例:"
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
"TextMarkType": "code", "TextMarkType": "code",
"TextMarkTextContent": "docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/" "TextMarkTextContent": "docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/"
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "。" "Data": "。"
} }
] ]
}, },

View file

@ -5,7 +5,7 @@
"Properties": { "Properties": {
"id": "20211226122459-08mi5cq", "id": "20211226122459-08mi5cq",
"title": "Docker 伺服", "title": "Docker 伺服",
"updated": "20230630170719" "updated": "20231108220609"
}, },
"Children": [ "Children": [
{ {
@ -373,7 +373,7 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20211226122519-ajimm1z", "id": "20211226122519-ajimm1z",
"updated": "20211228141917" "updated": "20231108220606"
}, },
"Children": [ "Children": [
{ {
@ -394,7 +394,11 @@
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
"TextMarkType": "code", "TextMarkType": "code",
"TextMarkTextContent": "docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container" "TextMarkTextContent": "docker run -d -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container"
},
{
"Type": "NodeText",
"Data": ""
} }
] ]
}, },
@ -485,7 +489,7 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20211226122519-yggdi08", "id": "20211226122519-yggdi08",
"updated": "20211228141927" "updated": "20231108220609"
}, },
"Children": [ "Children": [
{ {
@ -499,7 +503,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": " 和 " "Data": " 和 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -508,7 +512,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": " 都配置為 " "Data": " 都配置為 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -517,16 +521,16 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": ",對應的啟動指令示例:" "Data": ",對應的啟動指令示例:"
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
"TextMarkType": "code", "TextMarkType": "code",
"TextMarkTextContent": "docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/" "TextMarkTextContent": "docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/"
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "。" "Data": "。"
} }
] ]
}, },