I would like to proceed with Introduction to nginx practice on Mac OS.
Runtime privilege and Linux capabilities F.2.4. / SBIN / INIT Program
$ docker run --detach --name mycentos --privileged centos /sbin/init
$ docker exec -it mycentos bin/bash
9.5. YUM and YUM Repository Settings nginx: Linux packages
[root@b626534eeb51 yum.repos.d]# vi nginx.repo
nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/8/$basearch/
gpgcheck=0
enabled=1
[root@b626534eeb51]# yum install nginx
[root@b626534eeb51]# nginx
[root@b626534eeb51]# systemctl enable nginx.service
[root@b626534eeb51]# systemctl start nginx.service
[root@b626534eeb51]# curl localhost
Recommended Posts