docker-volume

unable to run a mongoDb container in docker for windows using linux file system

[亡魂溺海] 提交于 2020-07-23 10:22:25
问题 I am trying to run a mongo db container in windows with a volume mapping to a windows folder. I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing. I get the following lines in the log: 2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233 2020-06-12T12:49:11.433+0000 E STORAGE

unable to run a mongoDb container in docker for windows using linux file system

自古美人都是妖i 提交于 2020-07-23 10:20:19
问题 I am trying to run a mongo db container in windows with a volume mapping to a windows folder. I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing. I get the following lines in the log: 2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233 2020-06-12T12:49:11.433+0000 E STORAGE

Docker Bind Mounts in WSL do not show files

依然范特西╮ 提交于 2020-06-17 09:54:39
问题 Im trying to use the docker client from inside WSL, connecting to the docker engine on Windows. Ive exposed the docker engine on Windows on port 2375, and after setting the DOCKER_HOST environment variable in WSL, I can verify this works by running docker ps. The problem comes when i attempt to mount directories into docker containers from WSL. For example: I create a directory and file inside my home folder on WSL ( mkdir ~/dockertest && touch ~/dockertest/example.txt ) ls ~/dockertest shows

Docker for Windows: Accessing named volume mounts

你离开我真会死。 提交于 2020-05-16 06:45:15
问题 Please note that this is not a duplicate of Locating data volumes in Docker Desktop (Windows) as back in 2017 the inner workings of docker on windows were quite different - e.g. docker volume inspect output is quite different nowadays. I have trouble accessing data mounted to containers in docker for windows via named volume mounts. docker inspect [vol-id] [ { "CreatedAt": "2019-04-02T11:58:14Z", "Driver": "local", "Labels": { "com.docker.compose.project": "foo", "com.docker.compose.version":

Docker for Windows: Accessing named volume mounts

倾然丶 夕夏残阳落幕 提交于 2020-05-16 06:45:12
问题 Please note that this is not a duplicate of Locating data volumes in Docker Desktop (Windows) as back in 2017 the inner workings of docker on windows were quite different - e.g. docker volume inspect output is quite different nowadays. I have trouble accessing data mounted to containers in docker for windows via named volume mounts. docker inspect [vol-id] [ { "CreatedAt": "2019-04-02T11:58:14Z", "Driver": "local", "Labels": { "com.docker.compose.project": "foo", "com.docker.compose.version":

Cannot mount Config directory in Nextcloud Docker container

痴心易碎 提交于 2020-05-12 08:07:26
问题 I'm trying to create a custom Nextcloud config locally, then have the ability to mount it to the appropriate folder using volumes as defined here: https://github.com/nextcloud/docker#persistent-data. All the volume mounts work except for the config mount... Why is that being treated differently here? Steps to reproduce 0) Enter a new/emptry directory (containing no sub-directories or additional files). 1) Create a docker-compose.yml file containing only the below contents: version: "3.4"

How to connect docker volume 'database/app.db' to SQLAlchemy?

a 夏天 提交于 2020-04-18 05:46:29
问题 I am using Python 3.8.1 Flask latest and app running fine but unable to connect the docker volume from SQLAlchemy and if the database does not exist it should create the database, but I am unable to connect my shared docker volume into my Python Flask app. Config.py file: import os basedir = os.path.abspath(os.path.dirname(__file__)) DATA_PATH = "/database" if os.path.exists(DATA_PATH) == False: os.mkdir(DATA_PATH) class Config(object): # set a proper secret key here or is the .flaskenv file

Docker-compose and mongoDB: Failed to start up WiredTiger under any compatibility version?

假如想象 提交于 2020-04-17 21:25:14
问题 I have the following docker-compose file: version: "3" services: # # APIs #---------------------------------------------- pokerstats: image: pokerstats container_name: pokerstats ports: - 8080:8080 depends_on: - db # # Utilities #---------------------------------------------- db: image: mongo container_name: mongo volumes: - ./data/db:/data/db ports: - "27018:27017" environment: MONGO_INITDB_ROOT_USERNAME: admin MONGO_INITDB_ROOT_PASSWORD: admin MONGO_INITDB_DATABASE: pokerStats This was