提示
ubuntu 20.04
卸载
sudo yum remove $(rpm -qa | grep docker)
安装
sudo curl -fsSL https://get.docker.com/ | sh #镜像安装 sudo curl -fsSL https://github.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh| bash -s docker --mirror Aliyun sudo curl -fsSL https://gitee.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh| bash -s docker --mirror Aliyun
自启动
sudo systemctl enable docker
启动
sudo service docker start
systemctl start docker
systemctl stop docker
systemctl restart docker
systemctl enable docker
systemctl status docker
如果是在运行中输入命令后会看到绿色的active
docker version docker info
docker --help
使用idea创建spring Initializr项目时,默认的https://start.aliyun.com 不能勾选jdk8的版本,所以我们需要修改为阿里云的地址
在创建界面修改,点击齿轮按钮,修改地址为https://start.aliyun.com/
docker ps
docker exec -it 容器id /bin/bash
mysql -uroot -p
SET PASSWORD FOR 'root' = PASSWORD('mqGUiZAGnTC5A5X7');
docker exec -it redis /bin/bash
redis-cli
auth 密码
CONFIG SET requirepass "新密码"