読者です 読者をやめる 読者になる 読者になる

job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

複数のコンテナを同時に実行する際に docker run -v でコンテナに割り当てたディレクトリは正しく存在するのに二つ目のコンテナが起動するとカレントワーキングディレクトリがないと怒られる。 これは存在しないディレクトリに対してボリュームを割り当てたことによって起きるようで事前にディレクトリを作成しておくことで回避できた。

FROM ubuntu

RUN mkdir /workspace

たったこれだけのことで大事な休日の3時間程度を失った。かなしい。