Skip to content

podman libpod REST API - passing folders as volumes results in error #26090

Answered by Luap99
PedroM25 asked this question in Q&A
Discussion options

You must be logged in to vote

you need to use mounts, volume is onlt for actual real named volumes in the API.

For example

 "mounts": [
  {
   "destination": "/test",
   "type": "bind",
   "source": "/home/pholzing",
   "options": [
    "rw"
   ]
  }

The cli and API do not match one to one especially not around mounting.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PedroM25
Comment options

Answer selected by PedroM25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants