docker_practice/cases/os/centos.md

57 lines
2.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 run` `CentOS 7` `bash`
```bash
$ docker run -it centos:7 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.9.2009 (Core)
```
## Fedora
![Fedora ](./_images/fedora-logo.png)
`Fedora` `Fedora Project` `Linux` `Fedora` `Red Hat` `Red Hat Enterprise Linux`
### 使 Fedora
使 `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