Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
How to create automatic docker image after successful build of Jenkins?

I want to create a automatic docker image through Jenkins once build got success.

I tried by providing docker commands in execute shell but throwing command not found error.If this is not right way how to achieve this in Windows 10.

Shell

Error:

................    
................
  12 passing (81ms)

+ docker build -t snapshot .
C:\WINDOWS\TEMP\jenkins6038297422360146327.sh: line 4: docker: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE

Even after installing docker inside jenkins it is not picking my docker url

Docker inside jenkins

Docker Inside Jenkins

Complete error of Docker URL

enter image description here

Created a new vm with TLS false:

docker-machine create -d virtualbox --engine-opt tlsverify=false node2

to check TLS is made false i ran below command

 docker-machine env node2

enter image description here

here DOCKER_TLS_VERIFY = "1",however in the documentation it is mentioned DOCKER_TLS_VERIFY = "0" should be zero whether my machine now TLS enabled or not how can i confirm my machine is TLS false??

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

The shell you configured in your Jenkins job is executed by Jenkins executor on Jenkins machine(or Jenkins Slave machine if you're using Jenkins the Master-Slave way), so whatever command you would like to use, it must be installed correctly and in the PATH of the target machine, just like you execute command on terminal manually.

So the error message is self-explained now:

C:\WINDOWS\TEMP\jenkins6038297422360146327.sh: line 4: docker: command not found

which means you have not installed docker on your Jenkins machine, you need to install and configure it firstly.

Additionally, you may want to have a look at Docker build step plugin for Jenkins.

over 4 years ago · Santiago Trujillo Denunciar

0

If you don't need to run Docker on the same server than Jenkins I found that downloading a Docker Client was better than using the Jenkins Plugin. You can find the latest version here: https://download.docker.com/win/static/stable/x86_64/

Then just call the docker command with --host 192.168.99.100. It should work and build the image on the Docker Server 192.168.99.100

over 4 years ago · Santiago Trujillo Denunciar

0

install docker on jenkins. Jenkins does not know about docker.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda