0
1

docker(123) 今日のdocker error: Operation not permitted(解決)

Last updated at Posted at 2021-06-26

docker (37) Dockerをどっかーらどうやって使えばいいんでしょう。TOPPERS/FMP on RaspberryPi with Macintosh編 5つの関門「名古屋のIoTは名古屋のOSで」
https://qiita.com/kaizen_nagoya/items/9c46c6da8ceb64d2d7af

の作業をしようと思って、

bash
$  docker run -it kaizenjapan/dockertoppersfmprpi64_fmp:kaizenjapan /bin/bash

Status: Downloaded newer image for kaizenjapan/dockertoppersfmprpi64_fmp:kaizenjapan
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

administrator@ed762ac5a5fb:~$ apt update; apt -y upgrade
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

sudoをつければいいだけっぽい。

bash
$ sudo apt update; sudo apt -y upgrade

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

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