mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 03:53:33 +00:00
update TODO
This commit is contained in:
@@ -43,8 +43,7 @@ func (s *DockerService) Start(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
return fmt.Errorf("inspect container %q: %w", s.Name, err)
|
return fmt.Errorf("inspect container %q: %w", s.Name, err)
|
||||||
}
|
}
|
||||||
// Container already exists, recreate it if its configuration has to be changed.
|
// TODO: recreate only if the container configuration has to be changed.
|
||||||
// TODO: check config equal to the new one
|
|
||||||
if err = s.Client.ContainerRemove(ctx, s.Name, container.RemoveOptions{Force: true}); err != nil {
|
if err = s.Client.ContainerRemove(ctx, s.Name, container.RemoveOptions{Force: true}); err != nil {
|
||||||
return fmt.Errorf("remove container %q: %w", s.Name, err)
|
return fmt.Errorf("remove container %q: %w", s.Name, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user