Skip to content

volumes mounts parent directory than we expect, may tries to mount root directory #96

Description

@anatawa12

we have compose file like the following

services:
  redis:
    restart: always
    image: redis:7-alpine
    entrypoint: /usr/bin/docker-entrypoint.sh
    volumes:
      - redis-data:/data
#    healthcheck:
#      test: "redis-cli ping"
#      interval: 5s
#      retries: 20
    ports:
      - "6379:6379"

The container-compose tries to mount ~/.containers/Volumes/misskey/redis-data:/ results no entry point error.
Container compose should mount ~/.containers/Volumes/misskey/redis-data to /data instead

let destinationUrl = URL(fileURLWithPath: destination).deletingLastPathComponent()
let destinationPath = destinationUrl.path(percentEncoded: false)

I think this line causes the problem but I could not find why deletingLastPathComponent is added there

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions