标注工具-doccano 从零安装

安装虚拟机:

        1.安装VMware

        2.安装 centOS 7+

安装docker:

        1.yum安装gcc相关

yum -y install gcc
yum -y install gcc-c++

        2.卸载旧版本

sudo yum remove docker \
    docker-client \
    docker-client-latest \
    docker-common \
    docker-latest \
    docker-latest-logrotate \
    docker-logrotate \
    docker-engine

        3.安装 Docker Engine-Community 使用 Docker 仓库进行安装

        ①安装所需的软件包

sudo yum install -y yum-utils

        ②设置仓库

//官方的地址
​
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
    
//阿里云
sudo yum-config-manager \
    --add-repo \
    http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    
//清华
sudo yum-config-manager \
    --add-repo \
    https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo

        ③安装Docker Engine-Community

sudo yum install docker-ce docker-ce-cli containerd.io

        ④启动docker

sudo systemctl start docker

        ⑤验证是否成功安装docker

sudo docker run hello-world

        ⑥开机自启docker

systemctl enable docker

启动doccano

        1.启动docker

sudo systemctl start docker

        2.创建docker容器并创建用户

docker pull doccano/doccano


docker container create --name doccano \ 

    -e "ADMIN_USERNAME=admin" \ 

    -e "[email protected]" \ 

    -e "ADMIN_PASSWORD=password" \ 

    -v doccano-db:/data \ -p 8000:8000 doccano/doccano

        3.运行docker容器

docker container start doccano

        4.打开网址

//虚拟机  IP:8000

192.168.001.001:8000

        5.关闭容器

docker container stop doccano -t 5

你可能感兴趣的:(python)