docker_practice/cases/os/centos.md

77 lines
3.4 KiB
Go
Raw Normal View History

2017-05-24 03:22:23 +00:00
## CentOS/Fedora
### CentOS
CentOS Fedora Redhat Linux CentOS Fedora
![CentOS ](_images/centos-logo.png)
CentOSCommunity Enterprise Operating System Red Hat Enterprise Linux CentOS Redhat Linux 使 CentOS Red Hat Enterprise LinuxCentOS
#### 使 CentOS
使 `docker search` 25 CentOS
2017-11-22 03:13:23 +00:00
```bash
2017-05-24 03:22:23 +00:00
$ docker search -f stars=25 centos
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
centos The official... 2543 [OK]
jdeathe/centos-ssh 27 [OK]
```
使 docker run CentOS bash
2017-11-22 03:13:23 +00:00
```bash
2017-05-24 03:22:23 +00:00
$ docker run -it centos bash
Unable to find image 'centos:latest' locally
latest: Pulling from library/centos
3d8673bd162a: Pull complete
Digest: sha256:a66ffcb73930584413de83311ca11a4cb4938c9b2521d331026dad970c19adf4
Status: Downloaded newer image for centos:latest
[root@43eb3b194d48 /]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
```
### Fedora
![Fedora ](_images/fedora-logo.png)
Fedora Fedora Project Linux Fedora Red Hat Red Hat Enterprise Linux
#### 使 Fedora
使 `docker search` 2 Fedora
2017-11-22 03:13:23 +00:00
```bash
2017-05-24 03:22:23 +00:00
$ docker search -f stars=2 fedora
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
fedora Official Docker builds of Fedora 433 [OK]
dockingbay/fedora-rust Trusted build of Rust programming language... 3 [OK]
gluster/gluster-fedora Official GlusterFS image [ Fedora 21 + Glu... 3 [OK]
startx/fedora Simple container used for all startx based... 2 [OK]
```
使 docker run Fedora bash
2017-11-22 03:13:23 +00:00
```bash
2017-05-24 03:22:23 +00:00
$ docker run -it fedora bash
Unable to find image 'fedora:latest' locally
latest: Pulling from library/fedora
2bf01635e2a0: Pull complete
Digest: sha256:64a02df6aac27d1200c2572fe4b9949f1970d05f74d367ce4af994ba5dc3669e
Status: Downloaded newer image for fedora:latest
[root@196ca341419b /]# cat /etc/redhat-release
Fedora release 24 (Twenty Four)
```
###
2017-12-01 09:32:53 +00:00
* `Fedora` https://getfedora.org/
* `Fedora` https://github.com/fedora-infra
* `Fedora` https://hub.docker.com/_/fedora/
* `Fedora` https://github.com/fedora-cloud/docker-brew-fedora
2018-12-21 16:04:50 +00:00
* `CentOS` https://www.centos.org
2017-12-01 09:32:53 +00:00
* `CentOS` https://github.com/CentOS
* `CentOS` https://hub.docker.com/_/centos/
* `CentOS` https://github.com/CentOS/CentOS-Dockerfiles