Failed to install docker plugin

Aftter I installed Jenkins, I tried to install docker plugin, and it doesn’t raise error when I install it, however it doesn’t really installed when I query the installed plugin.

root@ip-172-31-42-45:~# java -jar jenkins-cli.jar -auth test:test -s http://localhost:8080 install-plugin docker-plugin

Installing docker-plugin from update center

root@ip-172-31-42-45:~# java -jar jenkins-cli.jar -auth test:test -s http://localhost:8080 list-plugins |grep -i docker

root@ip-172-31-42-45:~#

What do your logs say?

Did you restart Jenkins after installing the plugin? It may be that list-plugins does not report a plugin as installed until after the restart completes the process.

There is no log, that’s the strange thing

The error is from aws EC2 instance. But when I run it on my local pc, there is no such issue. Maybe some environment problem