Repository navigation
Replies: 3 comments
|
Are you seeing this with Rancher Desktop for Windows, or with bare WSL2? |
0 replies
|
I've installed the containerd service in windows using this guide Then I run nerdctl.exe version 1.4.0 The error is level=fatal msg="volume target must be an absolute path, got "/var/lib/mysql"" compose file: test.yml version: '3.8' services: mariadb:
volumes: |
0 replies
|
Please make sure that you are running the Linux version of containerd and nerdctl for running Linux containers |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
I want to create a MariaDB container using nerdctl and a compose file, but it shows this error:
C:\containers>nerdctl compose -f test.yml up
level=fatal msg="volume target must be an absolute path, got "/var/lib/mysql""
OS: Windows server 2022 with WSL2
nerdctl version 1.4.0
compose file: test.yml
version: '3.8'
services:
mariadb:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: passwroot
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD: pass
volumes:
- mariadb-data:/var/lib/mysql
volumes:
mariadb-data:
Steps to reproduce the issue
Describe the results you received and expected
C:\containers>nerdctl compose -f test.yml up
level=fatal msg="volume target must be an absolute path, got "/var/lib/mysql""
What version of nerdctl are you using?
nerdctl version 1.4.0
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
Windows server 2022 WSL2
All reactions