fix: add a button to last page on logs

This commit is contained in:
jialin
2025-01-08 15:26:03 +08:00
parent 2a9c501ee2
commit decb3ef2f1
21 changed files with 245 additions and 127 deletions
@@ -80,7 +80,7 @@ const AddWorker: React.FC<ViewModalProps> = (props) => {
</ul>
<h3>1. {intl.formatMessage({ id: 'resources.worker.add.step1' })}</h3>
<HighlightCode
code={addWorkerGuide.mac.getToken}
code={addWorkerGuide.container.getToken}
theme="dark"
></HighlightCode>
<h3>
+4
View File
@@ -56,6 +56,10 @@ export const addWorkerGuide: Record<string, any> = {
registerWorker(params: { server: string; tag: string; token: string }) {
return `docker run -d --ipc=host --network=host gpustack/gpustack:${params.tag} --server-url ${params.server} --token ${params.token}`;
}
},
container: {
getToken:
'docker run -it ${gpustack_container_id} cat /var/lib/gpustack/token'
}
};