简体   繁体   中英

Jenkins on Docker start build angular app on docker

I started learning how to use Jenkins I launched it on Docker. I have a project written in Angular and a Dockerfile created in it to build a Docker image. When I try to boot from Jenkins, I get information that the docker is not installed. So I tried to install it but I can't manually install it. Can anyone suggest how to do this? I say in advance that I would like to skip DockerHub

If I'm understanding things correctly, you want to use Jenkins (running within a container) to build other container images. If that's correct, try one of the following:

  1. Docker-in-docker
  2. Bind-mounting the docker socket into your Jenkins container
  3. Install Jenkins directly on the host and add the user that Jenkins is running under to the docker group.

Do your research on each of these approaches - there are security risks that come with them. Understand your use case, understand mitigation approaches, and decide whether the risk is worth it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM