-
Clone this repository to internal
By SSH
git clone [email protected]:hoangbeard/docker-in-jenkins-docker.git
Or by HTTPS
git clone https://github.com/hoangbeard/docker-in-jenkins-docker.git
-
Create an environment variables file for docker-compose by renaming .env.sample to .env in the root folder. Modify the username and password that you want.
cp .env.sample .env
-
Run container in background and print container ID
docker compose up -d
-
Access to Jenkins console
Default credential in .env Username: admin Password: password
-
Clean docker compose
docker compose down --volumes
-
Remove jenkins data. Notice: Skip this step if you want to keep the jenkins data
rm -rf jenkins_home