Until you start nginx on CentOS using Docker on Mac OS

I would like to proceed with Introduction to nginx practice on Mac OS.

Start CentOS with Docker

Runtime privilege and Linux capabilities F.2.4. / SBIN / INIT Program

$ docker run --detach --name mycentos --privileged centos /sbin/init

Launch a Bash shell inside the container

Run interactive container

$ docker exec -it mycentos bin/bash

YUM repository settings

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

Install and launch nginx

[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

Until you start nginx on CentOS using Docker on Mac OS
Until you start developing android apps on mac
Try using Redmine on Mac docker
Until you run apache on ubuntu on docker
Docker installation on CentOS 6
Install nginx on centOS7
When Kubernetes doesn't start on Docker Desktop for Mac
Until building Spring-Boot using Eclipse on Mac (Gradle version)
Ssh to Ubuntu on VirtualBox on your Mac and do it until you install Docker
[For beginners] Until building a Web application development environment using Java on Mac OS
Until you run Quarkus and run docker image on Amazon ECS
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
Until you build the docker environment and start / stop the Ubuntu container
Summary of Docker understanding by beginners ③ ~ Until proxying API using nginx ~
Steps to run docker on Mac
Install Ruby 2.5 on CentOS 7 using SCL
Installed on Lombok Mac (using STS)
WordPress with Docker Compose on CentOS 8
Use Docker on your M1 Mac
Set JAVA_HOME correctly on Mac OS 10.12
Using Docker on Windows10 Home WSL2
Use Docker CE (official) on CentOS 8
Customize OpenFOAM v8 Docker Image on Mac
Until you run CuPy (v11.1) on Ubuntu 20.04
Set up Docker Registry locally on CentOS 7
Installing and configuring ClipBucket and Nginx on CentOS 7
Run Ubuntu + ROS with Docker on Mac