在Google Cloud中安装Label Studio并将其与公共IP一起使用 [英] Install Label Studio in Google Cloud and make it available with the public IP

查看:98
本文介绍了在Google Cloud中安装Label Studio并将其与公共IP一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Cloud中有一个具有Ubuntu 20.04 LTS的VM实例,我将其设置为允许HTTP流量.

I have a VM instance in Google Cloud with Ubuntu 20.04 LTS, I set it to allow HTTP traffic.

我需要设置Label Studio( https://github.com/heartexlabs/label-studio )在该虚拟机中,因此任何人都可以通过键入虚拟机公共IP来访问它.

I need to setup Label Studio (https://github.com/heartexlabs/label-studio) in this VM so anyone can access it by just typing the VM public IP.

我已经尝试使用docker构建它:

I already tried building it with docker:

sudo docker build -t heartexlabs/label-studio:latest .

但是当我运行它时:

sudo docker run -d -p 80:80 heartexlabs/label-studio:latest

它不起作用,容器列表的输出在哪里

It doesn't work, wheres the output of the container list

CONTAINER ID   IMAGE                             COMMAND            CREATED              STATUS              PORTS                          NAMES
2e728edbe6d5   heartexlabs/label-studio:latest   "./tools/run.sh"   About a minute ago   Up About a minute   0.0.0.0:80->80/tcp, 8080/tcp   gracious_shamir

我还尝试使用pip安装它并使用:

I also tried to install it with pip and run it with:

label-studio start --host 34.66.116.52 --port 80 testproject

如果任何人都有使用Google Cloud VM的经验,并且可以帮助使用docker或WSGI服务器进行设置,

If anyone has experience with Google Cloud VM and can help set this up with docker or with a WSGI server I'd appreciate it

推荐答案

尝试一下:
sudo docker run --rm -d -p 80:8080 -v`pwd`/my_project:/label-studio/my_project --name label-studio heartexlabs/label-studio:latest label-studio启动my_project-初始化
我可以使用它从外部IP访问它.

Try this:
sudo docker run --rm -d -p 80:8080 -v `pwd`/my_project:/label-studio/my_project --name label-studio heartexlabs/label-studio:latest label-studio start my_project --init
I was able to access it from External IP with this.

这篇关于在Google Cloud中安装Label Studio并将其与公共IP一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆