LoginSignup
0
0

NvidiaのUbuntu22.04コンテナ上でapt-get updateができない対応策

Posted at

前書き

事象をメモするの忘れたので、ごめんなさい。
GPGとかいろいろやったけどコレだけだった。。。

環境

WSL2上のDockerでベースイメージはこれ
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04

対応策

以下のようにupdateする前にchmod 1777 /tmpを追加する

FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04

RUN chmod 1777 /tmp \ 
	&& apt-get -y update \
		...

これでダメたら大抵システム時間が合っていないせいなので、WSL2上のシステム時間を合わせ、/usr/share/zoneinfo/Asia/Tokyo:/etc/localtime:roをマウントすれば行ける

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0