LoginSignup
0
0

More than 1 year has passed since last update.

DockerでVimがインストールできない

Last updated at Posted at 2022-05-09

自分用備忘録です。

起きたこと

Dockerfileでvimとその他もろもろをインストールしようとすると、できなくなった。
image.png
ファイルが見つかりません的なことを言ってる…?なんでなんで~??
↓Dockerfileはこれ

FROM --platform=linux/x86_64 ubuntu:20.04

RUN apt-get update
RUN apt-get install -y locals vim curl tmux tcpdump iputils-ping netcat cron less telnet python3
RUN yes | unminimize
RUN locale-gen ja_JP.UTF-8
ENV LANG=ja_JP.UTF-8
ENV TZ=Asia/Tokyo
WORKDIR /linux-study

解決法

localsをインストールする前に、もう一度apt-get updateをするといけた(apt-get updateをしてくださいというエラーメッセージがでてた)
↓に直したらいけた

FROM --platform=linux/x86_64 ubuntu:20.04

RUN apt-get update
RUN apt-get install -y locales
RUN apt-get update
RUN apt-get install -y vim curl tmux tcpdump iputils-ping netcat cron less telnet python3
RUN yes | unminimize
RUN locale-gen ja_JP.UTF-8
ENV LANG=ja_JP.UTF-8
ENV TZ=Asia/Tokyo
WORKDIR /linux-study
0
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
0
0