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.

Dockerfileでzypper installを実行すると終了してしまう問題の対策

Last updated at Posted at 2022-03-03

概要

下記問題への対策

・Dockerfile で zypper install をすると、非0 が返ってきて途中終了してしまう問題

Dockerfile

次のように、非0 の場合に「:」を実行させれば良い模様.
引用元は失念してしまった.

RUN zypper --non-interactive install curl    || :
RUN zypper --non-interactive install nmap    || :
RUN zypper --non-interactive install iputils || :
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?