TIPS Appunti Docker
Base Docker - Rif: https://geekscircuit.com/how-to-install-docker-on-oracle-linux-8-7/
sudo yum update sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum update sudo yum install docker-ce docker-ce-cli containerd.io sudo systemctl enable docker sudo systemctl start docker
Per permettere alle macchine Docker di viaggiare su internet in uscita abilitare:
sysctl -w net.ipv4.ip_forward=1
sudo nano /etc/sysctl.conf
-- Costruzione DB MariaDB con volume esterno --
docker run --name mariadb01 -e MYSQL_ROOT_PASSWORD=orione -p 3306:3306 -v /opt/mariadb01:/var/lib/mysql -d mariadb:latest
netstat -anop:
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 24933/docker-proxy off (0.00/0/0)
https://windsock.io/the-docker-proxy/
Per usare un docker ubuntu per test: https://ioflood.com/blog/docker-run-bash/#:~:text=The%20'docker%20run%20bash'%20command,tool%20for%20debugging%20and%20development.