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

}'

"""

相关推荐
love530love2 小时前
【笔记】在 MSYS2(MINGW64)中安装 python-maturin 的记录
运维·开发语言·人工智能·windows·笔记·python
Li-Yongjun6 小时前
5G-A:开启通信与行业变革的新时代
运维·服务器·5g
待什么青丝6 小时前
【Ubuntu】摸鱼技巧之虚拟机环境复制
linux·运维·ubuntu
中杯可乐多加冰6 小时前
采用Bright Data+n8n+AI打造自动化新闻助手:每天5分钟实现内容日更
运维·人工智能·自动化·大模型·aigc·n8n
东临碣石827 小时前
【AI论文】SWE-rebench:一个用于软件工程代理的任务收集和净化评估的自动化管道
运维·自动化
拍客圈8 小时前
宝塔专属清理区域,宝塔清理MySQL日志(高效释放空间)
运维·服务器
Mikhail_G8 小时前
Python应用for循环临时变量作用域
大数据·运维·开发语言·python·数据分析
Stardep8 小时前
Linux下目录递归拷贝的单进程实现
linux·运维·服务器·实验
hawk2014bj8 小时前
KVM 安装 Ubuntu 22
linux·运维·ubuntu
三金C_C9 小时前
docker 部署 gin
docker·容器·gin