Centos7安装docker

1.[root@localhost admin]# cat /etc/redhat-release 查看centos版本


2.[root@localhost admin]# yum -y install gcc


3.[root@localhost admin]# yum -y install gcc-c++


4.[root@localhost admin]# yum install -y yum-utils


5. [root@localhost admin]# yum-config-manager --add-repo

http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo


6. [root@localhost admin]# yum install docker-ce docker-ce-cli containerd.io


7. [root@localhost admin]# systemctl start docker   启动docker


8.[root@localhost admin]# ps -ef|grep docker  查看docker启动状态


9.[root@localhost admin]# docker version


10.[root@localhost admin]# docker run hello-world



卸载docker

docker安装_c++



docker安装keycloak

docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:18.0.0 start-dev