1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Dockerでエラーが出た

1
Last updated at Posted at 2022-03-20

行っていたこと

Cloud Runにデプロイをする前にDockerにあげて確認をしようとしていた。
しかし、Dockerfileに記載してあるRUN yarn installから先に進まない...

Dockerfile

FROM node:16.13.1-alpine
WORKDIR .
COPY package.json yarn.lock ./
COPY . .
RUN yarn install
RUN yarn cache clean --force && rm -rf node_modules/.cache
RUN yarn build
EXPOSE 8111
CMD ["yarn", "start"]

エラー内容

"ENOSPC: no space left on device, write"

対応

docker system pruneを実行したら、なんと46GB以上のいらないものが削除された!

最後に

Dockerを使っていると、こんなこともあるのかと勉強になったので記事にまとめておきます。

※自分では解決できませんでしたが後日、参考になるサイトを教えて頂いたので参考文献に入れておきます。

参考文献

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?