Hi Mark,

Thanks for the responds.  However, I cannot find any Jenkins plugins for
the solutions proposed in the link.
Apologizes as I am a newbie in DevOps.

I am thinking either to use a Jenkin's free style project or Pipeline to
build a image and then push the image to docker hub.  In this case, the
tool to build the images must either reside within the Jenkins pod or needs
to be installed in another pod(I am looking at Kaniko/Podman) .  Is this
understanding correct?

Thanks.


On Sun, 7 Feb 2021 at 05:26, Mark Waite <[email protected]> wrote:

> https://dev.to/thakkaryash94/how-many-ways-to-build-a-container-image-4g3p
> suggests several different ways that a Kubernetes pod can be used to build
> a container with using the docker command.
>
> It also provides a nice summary of the risks of using the docker command
> to build untrusted images.
>
> On Sat, Feb 6, 2021 at 11:44 AM Desmond Lim <[email protected]> wrote:
>
>> Hi All,
>>
>> I am trying to build a docker image inside a Jenkins pod.  However, I got
>> the below errors.  When I login to the Jenkins pod, I cannot find the
>> docker command.  I have installed all plugins related to Jenkins and am
>> using 'jenkins/jenkins:lts' image from docker hub.
>>
>> [docker-demo] $ /bin/sh -xe /tmp/jenkins2842149568243187838.sh + docker
>> build . -t anandr72/nodeapp /tmp/jenkins2842149568243187838.sh: 2:
>> /tmp/jenkins2842149568243187838.sh: docker: not found Build step 'Execute
>> shell' marked build as failure Finished: FAILURE
>>
>> Appreciate if someone can help.  Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/31b7fa45-4b80-43b6-a83b-0d4c1417e010n%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/31b7fa45-4b80-43b6-a83b-0d4c1417e010n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGXqdOzsRAnehrbGf%2BUzjpLam2zb16p7_KQcYTbBVPn%3DQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGXqdOzsRAnehrbGf%2BUzjpLam2zb16p7_KQcYTbBVPn%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Best Regards,
Desmond Lim

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAHFSeQzpu0TwWondYmp0LKwr9BD8UePgMerGZVsmCg4hSiwgLg%40mail.gmail.com.

Reply via email to