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

}'

"""

相关推荐
超级赛博搬砖工1 分钟前
SEO代理解析:成功搜索引擎抓取你需要了解的事项
大数据·运维·服务器·网络
换个昵称都难3 分钟前
webrtc peerconnection_server 模块介绍
运维·服务器·webrtc
志栋智能8 分钟前
超自动化安全的技术选型与架构设计指南
运维·安全·自动化
日取其半万世不竭11 分钟前
Memos 私人碎片笔记怎么搭?Docker 加 Caddy 一小时跑起来
笔记·docker·容器
ai_coder_ai11 分钟前
在自动化脚本中操作excel文件
运维·自动化·excel
gc_229915 分钟前
学习在Windows中基于Docker部署Dify的步骤
windows·docker·dify
写代码的学渣20 分钟前
docker部署开源实时观测系统hertzbeat
docker·容器·开源
ai产品老杨29 分钟前
架构师视点:基于 Docker 与边缘计算的百路异构视频中台,如何实现 GB28181/RTSP 统一接入与源码交付?
docker·音视频·边缘计算
TimberWill33 分钟前
Docker使用总结
运维·docker·容器
m0_5474866643 分钟前
《KVM Docker OpenStack实战—虚拟化与云计算配置 管理与运维》全套课件PPT
运维·docker·openstack