标签:roo 常用 redis -- data art 基础 logs oca
docker
docker search [镜像名称]
docker pull [镜像名]
docker images
docker rmi [镜像IMAGE_ID]
docker ps -a
docker ps
docker start [容器ID]
docker stop [容器ID]
docker restart [容器ID]
docker rm [容器ID]
docker attach [容器ID]
redis: docker run -p 6379:6379 -v $PWD/data:/data -d redis:4 redis-server --appendonly yes nginx: docker run -p 80:80 --name mynginx -v $PWD/www:/www -v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf -v $PWD/logs:/wwwlogs -d nginx mysql:docker run -p 3306:3306 --name mymysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:5.6 tomcat:docker run --name tomcat -p 8080:8080 -v $PWD/test:/usr/local/tomcat/webapps/test -d tomcat
标签:roo 常用 redis -- data art 基础 logs oca
原文地址:https://www.cnblogs.com/lixingwu/p/9784663.html