While installing Jenkins with docker you might face below errors, and these are the errors I have faced.
You are using the tabs inside the docker-compse.yml file; remove the tabs and use spaces instead
You might have used double quotes for a value that not supposed to have double-quotes. Also, you might have provided value to a place where no value is required.
the version you are using in the docker-compose.yml is not compatible with docker-compose.
WARNING: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail. java.net.UnknownHostException: updates.jenkins-ci.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
Firewall creating the issue, so execute the below commands, I am using centOS 8; please use commands according to your OS.
#allow traffic on port 80/443 on centos firewall using this command: firewall-cmd --zone=public --add-masquerade --permanent firewall-cmd --zone=public --add-port=80/tcp firewall-cmd --zone=public --add-port=443/tcp firewall-cmd --reload #then reboot the OS.
I am Pavankumar, Having 8.5 years of experience currently working in Video/Live Analytics project.