chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
([简体中文](./docker_zh.md)|English)
|
||||
|
||||
# Docker
|
||||
|
||||
## Install Docker
|
||||
|
||||
### Ubuntu
|
||||
```shell
|
||||
curl -fsSL https://test.docker.com -o test-docker.sh
|
||||
sudo sh test-docker.sh
|
||||
```
|
||||
### Debian
|
||||
```shell
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sudo sh get-docker.sh
|
||||
```
|
||||
|
||||
### CentOS
|
||||
```shell
|
||||
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
|
||||
```
|
||||
|
||||
### MacOS
|
||||
```shell
|
||||
brew install --cask --appdir=/Applications docker
|
||||
```
|
||||
|
||||
### Windows
|
||||
Ref to [docs](https://docs.docker.com/desktop/install/windows-install/)
|
||||
|
||||
## Start Docker
|
||||
```shell
|
||||
sudo systemctl start docker
|
||||
```
|
||||
## Download image
|
||||
|
||||
### Image Hub
|
||||
|
||||
#### CPU
|
||||
`registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.1`
|
||||
|
||||
#### GPU
|
||||
|
||||
`registry.cn-hangzhou.aliyuncs.com/modelscope-repo/modelscope:ubuntu20.04-py38-torch1.11.0-tf1.15.5-1.8.1`
|
||||
|
||||
### Pull Image
|
||||
```shell
|
||||
sudo docker pull <image-name>:<tag>
|
||||
```
|
||||
|
||||
### Check Image
|
||||
```shell
|
||||
sudo docker images
|
||||
```
|
||||
|
||||
## Run Docker
|
||||
```shell
|
||||
# cpu
|
||||
sudo docker run -itd --name funasr -v <local_dir:dir_in_docker> <image-name>:<tag> /bin/bash
|
||||
# gpu
|
||||
sudo docker run -itd --gpus all --name funasr -v <local_dir:dir_in_docker> <image-name>:<tag> /bin/bash
|
||||
|
||||
sudo docker exec -it funasr /bin/bash
|
||||
```
|
||||
|
||||
## Stop Docker
|
||||
```shell
|
||||
exit
|
||||
sudo docker ps
|
||||
sudo docker stop funasr
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user