adventurous-insurance-41443
07/11/2022, 5:18 PMcompose.yaml
file that looks like
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
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.fast-garage-66093
07/11/2022, 6:55 PMnerdctl
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