[root@localhost hello]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello hello-demo 4eefe43f7005 53 minutes ago 688MB
centos latest 300e315adb2f 2 months ago 209MB
hello-world latest bf756fb1ae65 14 months ago 13.3kB
java 8 d23bdf5b1b1b 4 years ago 643MB
[root@localhost hello]# ^C
[root@localhost hello]# ^C
[root@localhost hello]# ^C
[root@localhost hello]# docker run -d -p 90:90 hello
Unable to find image 'hello:latest' locally
docker: Error response from daemon: pull access denied for hello, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
[root@localhost hello]# docker run -d -p 90:90 hello:hello-demo
5c9123a896f9b09863208a1ddef3f72928f7873c2cb6c0b2c74e29cc67349f3d
[root@localhost hello]# ^C
[root@localhost hello]# ^C
[root@localhost hello]# ^C
必须跟上对应的版本 docker run -d -p 90:90 hello:hello-demo