{"id":996,"date":"2022-10-04T02:07:52","date_gmt":"2022-10-04T00:07:52","guid":{"rendered":"http:\/\/daisy-street.fr\/?p=996"},"modified":"2023-04-13T02:34:18","modified_gmt":"2023-04-13T00:34:18","slug":"acces-gpu-thru-docker","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2022\/10\/04\/acces-gpu-thru-docker\/","title":{"rendered":"acces gpu thru docker"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Installing NVIDIA Container Runtime<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl -s -L https:\/\/nvidia.github.io\/nvidia-container-runtime\/gpgkey | \\\n  sudo apt-key add -\ndistribution=$(. \/etc\/os-release;echo $ID$VERSION_ID)\ncurl -s -L https:\/\/nvidia.github.io\/nvidia-container-runtime\/$distribution\/nvidia-container-runtime.list | \\\n  sudo tee \/etc\/apt\/sources.list.d\/nvidia-container-runtime.list\nsudo apt-get update\nsudo apt-get install nvidia-container-runtime<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">add to docker<\/h2>\n\n\n\n<p>add it to docker runtimes<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>sudo tee \/etc\/docker\/daemon.json &lt;&lt;EOF\n{\n    &quot;runtimes&quot;: {\n        &quot;nvidia&quot;: {\n            &quot;path&quot;: &quot;\/usr\/bin\/nvidia-container-runtime&quot;,\n            &quot;runtimeArgs&quot;: []\n        }\n    }\n}\nEOF<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>sudo systemctl daemon-reload\nsudo systemctl restart docker.service<\/code><\/pre><\/div>\n\n\n\n<p>and \/ or <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>sudo systemctl edit docker.service<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>[Service]\nExecStart=\nExecStart=\/usr\/bin\/dockerd --add-runtime=nvidia=\/usr\/bin\/nvidia-container-runtime<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">install driver<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>sudo apt install nvidia-utils-525-server\nsudo apt install nvidia-driver-525 nvidia-dkms-525<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Installing NVIDIA Container Runtime add to docker add it to docker runtimes and \/ or install driver<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[12],"tags":[20,68,160,159],"class_list":["post-996","post","type-post","status-publish","format-standard","hentry","category-software","tag-docker","tag-gpu","tag-nvidia","tag-pass"],"jetpack_publicize_connections":[],"featured_image_src":null,"author_info":{"display_name":"admin9483","author_link":"https:\/\/daisy-street.fr\/index.php\/author\/admin9483\/"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/comments?post=996"}],"version-history":[{"count":2,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/996\/revisions"}],"predecessor-version":[{"id":1180,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/996\/revisions\/1180"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}