Hi,
Could you please help on below error?
[jenkins@localhost jenkins-data]$ cat docker-compose.yml
version: ‘3.8’
services:
jenkins:
container_name: jenkins
image: jenkins/jenkins
volumes:
- “$PWD/jenkins_home:/var/jenkins_home”
ports:
- “8080:8080”
remote_host:
container_name: remote-host
image: remote-host
build:
context: centos9
[jenkins@localhost jenkins-data]$ docker compose build
validating /home/jenkins/jenkins-data/docker-compose.yml: (root) Additional property build is not allowed
[jenkins@localhost jenkins-data]$
[jenkins@localhost jenkins-data]$ cat docker-compose.yml
version: ‘3.8’
services:
jenkins:
container_name: jenkins
image: jenkins/jenkins
volumes:
- “$PWD/jenkins_home:/var/jenkins_home”
ports:
- “8080:8080”
remote_host:
container_name: remote-host
image: remote-host
build:
context: centos9
[jenkins@localhost jenkins-data]$ docker compose build
validating /home/jenkins/jenkins-data/docker-compose.yml: (root) Additional property build is not allowed
[jenkins@localhost jenkins-data]$