podman-compose
podman-compose copied to clipboard
permission denied on Mounting
I am trying to mount a file however it always gives "permission denied" and privileged : true seems not supported !
`version: '3.3'
services:
DB:
image: mysql:latest
container_name: sql_server
# privileged: true
environment:
MYSQL_DATABASE: 'db'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
expose:
- '3306'
command: --init-file /data/application/initialize.sql
volumes:
- ./initialize.sql:/data/application/initialize.sql`
Looks like this was resolved in https://github.com/containers/podman-compose/commit/27d3cafb7b33fd50c133004e7ebb5ba9f201bf90 ?
Hi,
If I use privileged: true
in the docker-compose.yml.
I get this error. yaml.scanner.ScannerError: mapping values are not allowed here
podman-composer version 0.1.7dev
Are you sure your yaml is valid, try online yaml to json
Is that right?
version: '3'
services:
registry:
image: registry:latest
privileged: true
volumes:
- ./:/var/lib/registry
- ./config.yml:/etc/docker/registry/config.yml
environment:
REGISTRY_STORAGE_DELETE_ENABLED: "true"
restart: always
container_name: registry
ui:
image: joxit/docker-registry-ui:latest
ports:
- 5000:80
environment:
- REGISTRY_TITLE=IoNetworks Docker Registry
- NGINX_PROXY_PASS_URL=http://registry:5000
- DELETE_IMAGES=true
depends_on:
- registry
restart: always
container_name: registry-ui