You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
847 B
Markdown
25 lines
847 B
Markdown
# Jenkins docker build
|
|
- [Installing Jenkins Docker](https://www.jenkins.io/doc/book/installing/docker/)
|
|
- Create bridge network
|
|
```
|
|
docker network create jenkins
|
|
```
|
|
- `docker build -t myjenkins-blueocean:2.332.3-1 .`
|
|
- Command prompt
|
|
```
|
|
docker run --name jenkins-blueocean --rm --detach ^
|
|
--network jenkins --env DOCKER_HOST=tcp://docker:2376 ^
|
|
--env DOCKER_CERT_PATH=/certs/client --env DOCKER_TLS_VERIFY=1 ^
|
|
--volume jenkins-data:/var/jenkins_home ^
|
|
--volume jenkins-docker-certs:/certs/client:ro ^
|
|
--publish 8080:8080 --publish 50000:50000 myjenkins-blueocean:2.332.3-1
|
|
```
|
|
- Browse to `http://localhost:8080`
|
|
- accessing the container.
|
|
```
|
|
docker exec -it jenkins-blueocean bash
|
|
```
|
|
- Initial password
|
|
```
|
|
\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\jenkins-data\_data\secrets\initialAdminPassword
|
|
``` |