I am a beginner of devops tech. I have a running Jenkins/docker container on a linux box and want to move to a windows 10 pro machine. To prepare for the migration, I tested the docker desktop and run the jenkins:lts image successfully with some test user and config.
When i tried to delete the test container and recreate a fresh one so I can move the jenkins live data to there, the window docker continue to find old configure file of the test jenkins container.
I have deleted the docker completely a few times, including all wsl2 related folder, also deleted any docker things in user/appdata folder. But when I recreate the jenkins container, it still able to find some old configure and show me this.
hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
I tried below command but still not able to (1) locate and (2) remove the old config. One remark, when I reinstall the docker, and the first time I build the jenkins container, there is no tmp file inside the wsl$docker-desktop-dataversion-pack-datacommunitydockervolumes created.
So the old docker config must be somewhere. Thanks for helping.
docker-compose up --force-recreate -V docker-compose down -v
My docker-compose file is here. Thanks for helping
version: '3.8' services: jenkins: image: jenkins/jenkins:lts privileged: true user: root ports: - 8080:8080 - 50000:50000 container_name: jenkins volumes: - ~/jenkins:/var/jenkins_home - /var/run/docker.sock:/var/run/docker.sock volumes: jenkins: driver: local
Source: Docker Questions