search
LoginSignup
1

More than 1 year has passed since last update.

posted at

【docker build】unknown instructionでエラー

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

参考文献

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
What you can do with signing up
1