1
1

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 コンテナで conda install が失敗するようになった (Solving environment: ...working... failed with initial frozen solve. )

Posted at

こちらのコンテナをベースにtensorflow-gpuを使っていたのですが、
https://hub.docker.com/r/jupyter/datascience-notebook/
ある時から表題のエラーでコンテナのビルドに失敗するようになってしまいました。

こちらのSOの解決法が有効でしたので、メモがてら記事にしておきます。
https://stackoverflow.com/questions/60300787/errors-such-as-solving-environment-failed-with-initial-frozen-solve-retrying

解決策

# 序盤にこの2つのコマンドを追加
RUN conda config --set channel_priority false
RUN conda update --all

下の行だけで解決する、との記事も拝見し昨年はそれで解決したケースもあったのですが、
今回は上の行も必要でした。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?