常见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 小时前
Linux系统之htop命令基本使用
linux·运维·服务器
B***y8851 小时前
配置nginx访问本地静态资源、本地图片、视频。
运维·nginx
K***43062 小时前
IDEA+Docker一键部署项目SpringBoot项目
spring boot·docker·intellij-idea
w***Q3505 小时前
Git工作流自动化
运维·git·自动化
xu_yule7 小时前
Linux_12(进程信号)内核态和用户态+处理信号+不可重入函数+volatile
linux·运维·服务器
虾..7 小时前
Linux 环境变量&&进程优先级
linux·运维·服务器
小雪_Snow8 小时前
CentOS 7 测试 docker 镜像源
docker·centos
数据库学啊9 小时前
团队小希望运维简单,时序数据库选型有什么推荐?
运维·数据库·时序数据库
霍格沃兹软件测试开发10 小时前
Playwright MCP浏览器自动化指南:让AI精准理解你的命令
运维·人工智能·自动化
郝学胜-神的一滴10 小时前
Linux命名管道:创建与原理详解
linux·运维·服务器·开发语言·c++·程序人生·个人开发