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

docker-compose data not storing on local maching #2987

Closed
mr05je opened this issue Jul 13, 2024 · 6 comments
Closed

docker-compose data not storing on local maching #2987

mr05je opened this issue Jul 13, 2024 · 6 comments
Labels
discussion status/stale No recently activity has been seen and will be closed soon.

Comments

@mr05je
Copy link

mr05je commented Jul 13, 2024

Describe the problem

using docker-compose files not storing on local machine, tried all:

  • used ./:/data
  • used /games/mc/ftb-nt.1:/data
  • used volume

anything of this not working, mb my problem, but other dockers on my pc works (like this config)

Container definition

services:
  mc:
    image: itzg/minecraft-server
    tty: true
    stdin_open: true
    container_name: mc-ftb-nt.1
    restart: always
    ports:
      - 25565:25565
    environment:
      - MEMORY=8G
      - EULA=TRUE
      - ONLINE_MODE=FALSE
      - TYPE=FTBA
      - FTB_MODPACK_ID=123
      - FTB_MODPACK_VERSION_ID=12255
    volumes:
      - ftb-nt.1:/data

volumes:
  ftb-nt.1:
    driver: local
    driver_opts:
      o: bind
      type: none
      device: /games/mc/ftb-nt.1

Container logs

docker inspect -f "{{json .Mounts}}" mc-ftb-nt.1 RESULT:

[{"Type":"volume","Name":"mc_ftb-nt.1","Source":"/var/snap/docker/common/var-lib-docker/volumes/mc_ftb-nt.1/_data","Destination":"/data","Driver":"local","Mode":"rw","RW":true,"Propagation":""}]
@itzg
Copy link
Owner

itzg commented Jul 13, 2024

You didn't provide any indication of it "not working". You didn't provide any container logs. You didn't ls any of the host directories.

@mr05je
Copy link
Author

mr05je commented Jul 14, 2024

image
image

server also started and inited, logs, result of ls on host and in container below
image

@mr05je
Copy link
Author

mr05je commented Jul 14, 2024

and also new result of inspect
image

@itzg
Copy link
Owner

itzg commented Jul 14, 2024

Thanks for the requested info. You have proven that the container populated /data, so that's all I can control from the image implementation.

You'll need to determine why your docker setup is not mapping the host directory correctly as the inspect shows.

@mr05je
Copy link
Author

mr05je commented Jul 14, 2024

👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍

Copy link

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

@github-actions github-actions bot added the status/stale No recently activity has been seen and will be closed soon. label Aug 13, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion status/stale No recently activity has been seen and will be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants