Docker 学习笔记
简单的记录一下Docker的学习笔记。 首先看看如何安装。 以AWS EC2 Redhat 为例,安装一个EC2 实例,然后SSH进入界面。 根据老师的建议,首先关闭firewalld的防火墙和SELinux,以避免不必要的问题,安装docker之后他会自动安装配置一个iptables的防火墙。EC2的Redhat现在是version 8 的版本,默认没有安装firewalld和 iptable,这一步可以跳过; 修改selinux配置文件,然后重启 [root@ip-172-16-2-231 /]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these three