docker_practice/cases/os/centos.md

77 lines
3.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 Linux``CentOS`
### 使 CentOS
使 `docker search` `25` `CentOS`
```bash
$ 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`
```bash
$ 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`
```bash
$ 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`
```bash
$ 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)
```
##
* `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
* `CentOS` https://www.centos.org
* `CentOS` https://github.com/CentOS
* `CentOS` https://hub.docker.com/_/centos/
* `CentOS` https://github.com/CentOS/CentOS-Dockerfiles