Welcome to the Linux Foundation Forum!

Lab 9.1 Read-only Volume

Somehow, docker couldn't find the /tmp/ro directory I created

  1. kaisong@ubuntu-vm:~$ ls /tmp/ro
  2. host-ro-file
  3. kaisong@ubuntu-vm:~$ docker container run -ti --mount type=bind,source=/tmp/ro,target=/data,readonly --name crovol alpine sh
  4. docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/ro.
  5. See 'docker run --help'.

I tried with the other directory (/mnt/shared from the previous exercise), and I was able to create the read-only mount without any problem. What did I miss? Is there anything special about the /tmp directory?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training