fix: fix docker image reference

This commit is contained in:
lixiangwuxian 2024-11-07 19:53:44 +08:00
parent 5ee7dd5f8d
commit 2efcdc942b

View File

@ -78,7 +78,7 @@ func (dc *dockerContainer) CreateAndStartContainer() error {
// Create a container that runs `tail -f /dev/null` to keep it alive
resp, err := dc.Client.ContainerCreate(dc.Ctx, &container.Config{
Image: "debian",
Image: "python:3.13",
Cmd: []string{"tail", "-f", "/dev/null"}, // Keep container running
Tty: true,
}, hostConfig, networkConfig, nil, "")
@ -160,7 +160,7 @@ func (dc *dockerContainer) RestartAndCleanContainer() error {
// Recreate the container with the same resource limits
resp, err := dc.Client.ContainerCreate(dc.Ctx, &container.Config{
Image: "debian",
Image: "python:3.13",
Cmd: []string{"tail", "-f", "/dev/null"},
Tty: true,
}, &container.HostConfig{