Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mount blocks for compatibility with docker driver #142

Open
optiz0r opened this issue Nov 3, 2021 · 0 comments
Open

Support mount blocks for compatibility with docker driver #142

optiz0r opened this issue Nov 3, 2021 · 0 comments

Comments

@optiz0r
Copy link
Contributor

optiz0r commented Nov 3, 2021

Docker driver prefers use of mount {} blocks over mounts list (and which is better than volumes), but podman driver fails to run with this configuration, with error:

* failed to parse config: * Invalid label: No argument or block type is named "mount".

Example snippet of job spec for a docker registry

        task "registry" {
            driver = "podman"

            config {
                image = "registry:latest"
                ports = ["http"]
                mount {
                    type = "bind"
                    source = "/data/docker/registry/data"
                    target = "/var/lib/registry"
                }
                
                mount {
                    type = "bind"
                    source = "/data/docker/registry/auth"
                    target = "/auth"
                }
            }
        }

Edit: I just realised podman does not support the mounts list either, only volumes. It is lacking the entire volume mounting capability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants