Skip to content

Commit

Permalink
fix: docker installation check (#921)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
  • Loading branch information
Tpuljak authored Aug 14, 2024
1 parent cd21e05 commit 2c72faa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/server/registry/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"io"
"net"
"os"
"os/exec"

"github.com/daytonaio/daytona/pkg/docker"
"github.com/docker/docker/api/types/container"
Expand Down Expand Up @@ -60,12 +59,8 @@ func (s *LocalContainerRegistry) Start() error {
return err
}

if _, err := exec.LookPath("docker"); err != nil {
return fmt.Errorf("cannot find Docker installation. Please install by following https://docs.docker.com/engine/install/ and try again")
}

if _, err := cli.Info(ctx); err != nil {
return fmt.Errorf("cannot connect to the Docker daemon. Is the Docker daemon running?")
return fmt.Errorf("cannot connect to the Docker daemon. Is the Docker daemon running?\nIf Docker is not installed, please install it by following https://docs.docker.com/engine/install/ and try again")
}

dockerClient := docker.NewDockerClient(docker.DockerClientConfig{
Expand Down

0 comments on commit 2c72faa

Please sign in to comment.