常见docker使用命令


#搭建镜像
"""
sudo docker build -t es_refresh:V1.20230303 .

"""

#启动容器

"""
docker run -d --name=para_classify -v /etc/localtime:/etc/localtime  -v /data/chenhw/multi_label_classification:/edb2vec -p 8066:8066 --gpus '"device=0"' --ipc=host --ulimit memlock=-1 --ulimit stack=67108864  edb_retrieval:V1
"""

#--net=host
#输出docker

"""
sudo docker save minutes_gen:V1.20230317 > minutes_gen.tar 

"""

#查看镜像和容器

"""
sudo docker images

sudo docker ps

"""

#进入docker容器

"""
sudo docker exec -it 12e39d7323e2 /bin/bash

"""

#查看docker日志

"""
sudo docker logs --tail=1000 12e39d7323e2

"""

#导入镜像

"""
docker load -i qa-docker.tar

"""

#测试
"""
curl --location 'http://0.0.0.0:18001/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"model":"llama",
"messages": [
{
"role": "user",
"content": "你是由谁训练的"
}
],
"temperature":0.7,
"stream": false
}'

"""

"""
curl --location 'http://127.0.0.1:18001/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"model":"gildata-llama2-13b",
"messages": [
{
"role": "user",
"content": "你是由谁训练的"
}
],
"temperature":0.7,
"stream": false
}'

"""



"""

curl --location 'http://0.0.0.0:8001/v1/chat/completions' --header 'Content-Type: application/json' --data '{
"model":"lightgpt-70b",
"messages": [
{
"role": "user",
"content": "你是由谁训练的"
}
],
"temperature":0.7,
"stream": false
}'


"""
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值