1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | 什么是Docker镜像: 用户仓库 用户 仓库名 #docker search 查看wordpress镜像: [root@localhost ~]# docker search wordpress | head -10 NAME DESCRIPTION STARS OFFICIAL AUTOMATED wordpress The WordPress rich content management syst... 845 [OK] appcontainers/wordpress Centos/Debian/Ubuntu Based Customizable Wo... 23 [OK] centurylink/wordpress Wordpress image with MySQL removed. 11 [OK] kaihofstetter/wordpress-cli Installs a configured and ready to use Wor... 8 [OK] aveltens/wordpress-backup Easily backup and restore your WordPress b... 6 [OK] bitnami/wordpress Bitnami Docker Image for WordPress 6 [OK] genexies/wordpress Wordpress 4.3 image + custom wp-content by... 1 [OK] scjalliance/wordpress WordPress with GD and FreeType 1 [OK] apsl/wordpress Wordpress on LAMP managed with circus. Wor... 1 [OK] [root@localhost ~]# 拉取wordpress镜像: [root@localhost ~]# docker pull wordpress latest: Pulling from wordpress caa7f258cb4f: Pulling fs layer f70905b9ca20: Pulling fs layer 04b616f9cdef: Pulling fs layer 1a930f9a5fa9: Pulling fs layer d8bd0657b25f: Already exists a582cd499e0f: Already exists 528f28a57c47: Already exists 27e957187676: Already exists 04b616f9cdef: Pull complete 1a930f9a5fa9: Download complete 462edee6fd2a: Download complete 54a86a8dfaf7: Download complete b7ee93d44332: Download complete 8ce5820e0517: Download complete 8f24f05131c1: Download complete 4016089f3db5: Download complete b1b017519df2: Download complete 94bf05895c23: Download complete ef7eb6829d79: Download complete 3f26928ce25c: Download complete 0bcb4315b109: Download complete 2f33de4034ce: Download complete 56cafc444b5f: Download complete 6cf49b20533c: Download complete f84be661daf6: Download complete ceac16e1b353: Download complete 2e3a92ab0ae6: Download complete 44ec32c6d6f3: Download complete e4d56c6e1287: Download complete 611919b3d4be: Download complete 92b5b33d3eab: Download complete e2f419cc324c: Download complete 3a919225b712: Download complete 3f6d0b12f5ad: Download complete Status: Downloaded newer image for wordpress:latest 检查Centos详细信息: [root@localhost ~]# docker inspect centos [ { "Id": "5a7df8dd4d20d7222d717422e1671d237ab315d7deefb1fe56a745e2bccbc331", "Parent": "", "Comment": "Imported from -", "Created": "2016-03-14T01:57:33.593259349Z", "Container": "", "ContainerConfig": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "PortSpecs": null, "ExposedPorts": null, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": null, "Cmd": null, "Image": "", "Volumes": null, "VolumeDriver": "", "WorkingDir": "", "Entrypoint": null, "NetworkDisabled": false, "MacAddress": "", "OnBuild": null, "Labels": null }, "DockerVersion": "1.7.1", "Author": "", "Config": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "PortSpecs": null, "ExposedPorts": null, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": null, "Cmd": null, "Image": "", "Volumes": null, "VolumeDriver": "", "WorkingDir": "", "Entrypoint": null, "NetworkDisabled": false, "MacAddress": "", "OnBuild": null, "Labels": null }, "Architecture": "amd64", "Os": "linux", "Size": 323957253, "VirtualSize": 323957253 } ] [root@localhost ~]# 删除centos5 [root@localhost ~]# docker rmi centos5 |