Skip to content

Getting error in "Validate Jenkins" chapter of the tutorial when first build working with WSL2. #35

Description

@TheTechOddBug

Hi. I'm getting this error when trying to run first build in the "Validate Jenkins" chapter of the Templating Engine tutorial:

[JTE] Obtained Pipeline Template from job configuration
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/validate
[Pipeline] {
[Pipeline] isUnix
[Pipeline] sh

  • docker inspect -f . maven

The command 'docker' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

See https://docs.docker.com/docker-for-windows/wsl/ for details.

[Pipeline] isUnix
[Pipeline] sh

  • docker pull maven

The command 'docker' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

See https://docs.docker.com/docker-for-windows/wsl/ for details.

[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE

I'm having various wsl distros, even wsl1 and wsl2. But my default wsl distro is setting to one wsl2 valid one (in fact, the jenkins where i'm running the tutorial is executing in a docker container launched from that wsl2 distro -Ubuntu-20.04 for reference-.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions