Docker配置

CentOS7

安装docker

yum install docker

docker启动

systemctl start docker
systemctl enable docker

防火墙

service firewalld status
service firewalld stop

tomcat配置

docker pull tomcat
docker run -d -p 8888:8080 --name tomcatlst tomcat

mysql配置

docker pull mysql:5.5
docker run -p 3306:3306 --name mysql5.5 -e MYSQL_ROOT_PASSWORD=root -d mysql:5.5

redis配置

docker pull redis
docker run -p 6379:6379 --name redislst -d redis

你可能感兴趣的:(【38】Docker)