LoginSignup
3
2

More than 3 years have passed since last update.

【docker build】unknown instructionでエラー

Posted at

Note

unknown instruction: APT-GET'のエラーが出る。
Dockerfile内におけるRUNディレクティブで、改行のバックスラッシュが抜けている可能性あり。

NG

FROM ubuntu:18.04
RUN apt-get update -qq && ←
    apt-get install -y yarn curl gnupg2 npm nodejs

OK

FROM ubuntu:18.04
RUN apt-get update -qq && \ ←
    apt-get install -y yarn curl gnupg2 npm nodejs

参考文献

3
2
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
3
2