fix: add a button to last page on logs
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user