https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
a

adventurous-insurance-41443

07/11/2022, 5:18 PM
I wrote a
compose.yaml
file that looks like
Copy code
version: "3.8"
services:
  app:
    build:
      context: .
      dockerfile: local.Dockerfile
    ports:
      - "80:8000"
    environment:
      ENVIRONMENT_NAME: "LOCAL"
      BUNCH_O_ENVIRONMENT_VARS: "HERE"
    restart: always
    volumes:
      - .:/root/work
and it builds the container successfully and then when it starts the container i get
Copy code
app_1 |time="2022-07-11T17:03:16Z" level=fatal msg="failed to open \"/var/lib/nerdctl/dbb19c5e/containers/default/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb-json.log\", container is not created with `nerdctl run -d`?: stat /var/lib/nerdctl/dbb19c5e/containers/default/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb-json.log: no such file or directory"
and indeed
/var/lib/nerdctl
is missing from my computer. I am running macOS, and it appears to me that
/var/lib
is read-only.
👀 1
any ideas what needs to be done here?
f

fast-garage-66093

07/11/2022, 6:55 PM
The version of
nerdctl
bundled with Rancher Desktop 1.4.1 is a bug in `nerdctl compose`; there are instructions how to upgrade it manually in https://rancher-users.slack.com/archives/C0200L1N1MM/p1655740664994479?thread_ts=1655714455.038869&cid=C0200L1N1MM
🙌 1
You will need to re-do the upgrade if you ever do a "factory reset"
22 Views