Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
e77145f9
authored
Apr 01, 2026
by
Archer
Committed by
GitHub
Apr 01, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate docker volumn manager (#6690)
parent
d5ea3179
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
projects/volume-manager/.env.template
+1
-0
projects/volume-manager/src/drivers/DockerVolumeDriver.ts
+1
-1
projects/volume-manager/src/env.ts
+1
-0
No files found.
projects/volume-manager/.env.template
View file @
e77145f9
...
@@ -10,6 +10,7 @@ VM_RUNTIME=docker
...
@@ -10,6 +10,7 @@ VM_RUNTIME=docker
# Docker socket 路径(仅 docker 模式)
# Docker socket 路径(仅 docker 模式)
VM_DOCKER_SOCKET=/var/run/docker.sock
VM_DOCKER_SOCKET=/var/run/docker.sock
VM_DOCKER_API_VERSION=1.44
# k8s 命名空间(仅 kubernetes 模式)
# k8s 命名空间(仅 kubernetes 模式)
VM_K8S_NAMESPACE=opensandbox
VM_K8S_NAMESPACE=opensandbox
...
...
projects/volume-manager/src/drivers/DockerVolumeDriver.ts
View file @
e77145f9
...
@@ -14,7 +14,7 @@ export class DockerVolumeDriver implements IVolumeDriver {
...
@@ -14,7 +14,7 @@ export class DockerVolumeDriver implements IVolumeDriver {
private
dockerFetch
(
path
:
string
,
init
?:
RequestInit
):
Promise
<
Response
>
{
private
dockerFetch
(
path
:
string
,
init
?:
RequestInit
):
Promise
<
Response
>
{
// Bun supports unix socket via the `unix` fetch option
// Bun supports unix socket via the `unix` fetch option
return
fetch
(
`http://localhost
/v1.41
${
path
}
`
,
{
return
fetch
(
`http://localhost
${
env
.
VM_DOCKER_API_VERSION
}
${
path
}
`
,
{
...
init
,
...
init
,
// @ts-ignore - Bun-specific option
// @ts-ignore - Bun-specific option
unix
:
this
.
socketPath
unix
:
this
.
socketPath
...
...
projects/volume-manager/src/env.ts
View file @
e77145f9
...
@@ -5,6 +5,7 @@ const schema = z.object({
...
@@ -5,6 +5,7 @@ const schema = z.object({
VM_AUTH_TOKEN
:
z
.
string
().
min
(
1
),
VM_AUTH_TOKEN
:
z
.
string
().
min
(
1
),
VM_RUNTIME
:
z
.
enum
([
'docker'
,
'kubernetes'
]).
default
(
'kubernetes'
),
VM_RUNTIME
:
z
.
enum
([
'docker'
,
'kubernetes'
]).
default
(
'kubernetes'
),
VM_DOCKER_SOCKET
:
z
.
string
().
default
(
'/var/run/docker.sock'
),
VM_DOCKER_SOCKET
:
z
.
string
().
default
(
'/var/run/docker.sock'
),
VM_DOCKER_API_VERSION
:
z
.
string
().
default
(
'1.44'
),
VM_K8S_NAMESPACE
:
z
.
string
().
default
(
'opensandbox'
),
VM_K8S_NAMESPACE
:
z
.
string
().
default
(
'opensandbox'
),
VM_K8S_PVC_STORAGE_CLASS
:
z
.
string
().
default
(
'standard'
),
VM_K8S_PVC_STORAGE_CLASS
:
z
.
string
().
default
(
'standard'
),
VM_K8S_PVC_STORAGE_SIZE
:
z
.
string
().
default
(
'1Gi'
),
VM_K8S_PVC_STORAGE_SIZE
:
z
.
string
().
default
(
'1Gi'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment