常见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

}'

"""

相关推荐
小O_好好学7 分钟前
CentOS 7文件系统
linux·运维·centos
哲伦贼稳妥30 分钟前
一天认识一个硬件之机房地板
运维·网络·经验分享·其他
john_hjy37 分钟前
11. 异步编程
运维·服务器·javascript
x晕x40 分钟前
Linux dlsym符号查找疑惑分析
linux·运维·服务器
活跃的煤矿打工人1 小时前
【星海saul随笔】Ubuntu基础知识
linux·运维·ubuntu
later_rql2 小时前
k8s-集群部署1
云原生·容器·kubernetes
北京智和信通2 小时前
云平台和虚拟化智慧运维监控,全面提升故障感知与处置能力
运维·虚拟化·云平台·虚拟机监控
fasewer2 小时前
第五章 linux实战-挖矿 二
linux·运维·服务器
楚灵魈2 小时前
[Linux]从零开始的网站搭建教程
linux·运维·服务器
小小不董2 小时前
《Linux从小白到高手》理论篇:深入理解Linux的网络管理
linux·运维·服务器·数据库·php·dba