Installing Docker on CentOS 8
Fixing Docker Host connection issues (Do NOT use the method below) https://ahelpme.com/linux/centos-8/firewalld-and-podman-or-docker-no-internet-in-the-containe
Fixing Docker Host connection issues (Do NOT use the method below) https://ahelpme.com/linux/centos-8/firewalld-and-podman-or-docker-no-internet-in-the-containe
Contents
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.reposudo dnf repolist -v
sudo dnf updatesudo dnf install docker-ce --nobest
docker -v
systemctl enable dockerdnf install curl -ycurl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --versionsystemctl daemon-reload
systemctl restart docker
docker infodocker run --dns 8.8.8.8 busybox nslookup google.com
docker run busybox nslookup google.com
nslookup: write to '108.61.10.10': No route to host
;; connection timed out; no servers could be reachedYou'll get an error like the one above...
//sysctl -w net.ipv4.ip_forward=1firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --reload
systemctl restart docker
docker run busybox nslookup google.comThen... it should work properly without any issues...
This method should not be used as a solution....
See the link below for more details about this.
sudo chcon -t httpd_sys_content_t /home/폴더명/backend/ -R
sudo chcon -t httpd_sys_rw_content_t /home/폴더명/backend/* -R
chmod -R 777 /home/폴더명/backendhttps://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors
free -m
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1If you set the size incorrectly, delete the swap using the commands below and set it up again.
swapoff /var/swap.1
rm -f /var/swap.1Well... that's how I wrote up installing Docker on CentOS 8..
Now... since most work is done with Docker, I guess you can just run the commands directly on the VPS to install it and get to work...
Vultr has added a location in Korea this time... awesome >.<
docker exec -it 77d8be03cdf0 /bin/bash
php artisan migrateOkay... now connect to the container using bash and run migrate. Done!!
To add a note about this at 2 AM on May 17, you shouldn't use the above
firewall-cmd --zone=public --add-masquerade
to solve it....
I'll explain why in the link.