docker_practice/cases/os/centos.md

57 lines
2.5 KiB
Go
Raw Normal View History

# CentOS/Fedora
2017-05-24 11:22:23 +08:00
## CentOS
2017-05-24 11:22:23 +08:00
`CentOS` `Fedora` `Redhat` Linux `CentOS` `Fedora`
2017-05-24 11:22:23 +08:00
![CentOS ](./_images/centos-logo.png)
2017-05-24 11:22:23 +08:00
CentOSCommunity Enterprise Operating System `Red Hat Enterprise Linux` `CentOS` `Redhat Linux` 使 `CentOS` `Red Hat Enterprise Linux``CentOS`
2017-05-24 11:22:23 +08:00
### 使 CentOS
2017-05-24 11:22:23 +08:00
使 `docker run` `CentOS` `bash`
2017-05-24 11:22:23 +08:00
2017-11-22 11:13:23 +08:00
```bash
2017-05-24 11:22:23 +08: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
2017-05-24 11:22:23 +08:00
![Fedora ](./_images/fedora-logo.png)
2017-05-24 11:22:23 +08:00
`Fedora` `Fedora Project` `Linux` `Fedora` `Red Hat` `Red Hat Enterprise Linux`
2017-05-24 11:22:23 +08:00
### 使 Fedora
2017-05-24 11:22:23 +08:00
使 `docker run` `Fedora` `bash`
2017-05-24 11:22:23 +08:00
2017-11-22 11:13:23 +08:00
```bash
2017-05-24 11:22:23 +08: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-05-24 11:22:23 +08:00
2017-12-01 17:32:53 +08: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-22 00:04:50 +08:00
* `CentOS` https://www.centos.org
2017-12-01 17:32:53 +08:00
* `CentOS` https://github.com/CentOS
* `CentOS` https://hub.docker.com/_/centos/
* `CentOS` https://github.com/CentOS/CentOS-Dockerfiles