open-im-server/docs/contrib/install_docker.md
Xinwei Xiong b72b72f74f
docs: add openim docs (#1165)
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
2023-10-08 08:53:19 +00:00

950 B

Install Docker

The installation command is as follows:

$ curl -fsSL https://get.docker.com | bash -s docker --mirror aliyun
``

## 2.2 Start Docker

```bash
$ systemctl start docker

2.3 Test Docker

$ docker run hello-world

2.4 Configure Docker Acceleration

$ mkdir -p /etc/docker
$ tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}
EOF
$ systemctl daemon-reload
$ systemctl restart docker

2.5 Install Docker Compose

$ sudo curl -L "https://github.com/docker/compose/releases/download/latest/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

2.6 Test Docker Compose

$ docker-compose --version