How to solve this problem I tried lot of times

  • docker build -t devopsmydockerhub/spring-k8s:latest .
    /var/jenkins_home/workspace/spring-test@tmp/durable-a8cccece/script.sh: 1: docker: Permission denied
    [Pipeline] }
    [Pipeline] // script
    [Pipeline] }
    [Pipeline] // withEnv
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // withEnv
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    ERROR: script returned exit code 127
    Finished: FAILURE

Just out of curiosity: what makes you think someone would actually understand the issue and knows the solution based on the provided information in your post?