Some problems about installing jenkins in Docker

install jenkin using docker

the operation command is as follows

docker pull
docker run: mount the tomcat/jdk/maven installed on the host to the container
docker exec enter the container and you can see the mounted directory

questions are as follows

1: configure tomcat,maven and other paths in the jenkins, opened by the browser. These paths refer to the liunx host path or the mounted path in the container
2: if the host tomcat directory is mounted to the container and I find that the host tomcat needs to be replaced, how to update the tomcat version in the container? before I use docker stop, docker rm, to mount the new path. As a result, I need to reconfigure jenkins
3: the directory mounted in the container does not have operation permissions. Through ls-l, it is found that the mounted directory users and user groups are all root and only users have rwx permissions, while user groups and others do not have any permissions. I want to use sudo to switch administrator accounts and find that I don"t have permission. How can I get permission to change the configuration file
4: ask for a docker communication group

Sep.17,2021

  1. is the path within the container
  2. the configuration of each version of tomcat is the same. It can be replaced in situ, and jenkins should not need to be reconfigured
  3. .
  4. it is possible to modify the user and group of directories on the host, so that the user Id and group Id of the file after mounting will be the same as those on the host. Generally speaking, there is no need for sudo to perform specific operations
  5. :-(
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e70947-2ed.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e70947-2ed.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?