docker-for-windows

Docker log (driver json-file) location for Docker for windows

爷,独闯天下 提交于 2020-05-30 08:05:19
问题 I want to locate a container's log location. I use Docker Desktop for Windows I know that on linux they are at /var/lib/docker/containers/ But where is it. Is it hidden away somewhere in an inaccessible VM? 回答1: On windows you can find the containers logs inside: C:\ProgramData\docker\containers\[Your_container_ID]\[Your_container_ID]-json.log 回答2: For windows , the container storage is the Hyper V's virtual Hard disk.You would have to connect to that hard disk to get the container logs. See

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":

Docker container shuts down giving 'data directory has wrong ownership' error when executed in windows 10

两盒软妹~` 提交于 2020-05-14 16:33:26
问题 I have my docker installed in Windows. I am trying to install this application. It has given me the following docker-compose.yml file: version: '2' services: web: build: context: . dockerfile: Dockerfile-nginx ports: - "8085:80" networks: - attendizenet volumes: - .:/usr/share/nginx/html/attendize depends_on: - php php: build: context: . dockerfile: Dockerfile-php depends_on: - db - maildev - redis volumes: - .:/usr/share/nginx/html/attendize networks: - attendizenet php-worker: build:

Dockerizing a Windows Service

扶醉桌前 提交于 2020-04-18 01:12:18
问题 I am new to docker and I have an application including a set of windows services (.NET). I d like to run it into a docker container. What should I do ? 回答1: In general, you should choose a base image which has the necessary libraries already installed on it as much as possible instead of taking a very base image such as plain Linux or Windows and installing on it. In your case, select a docker image which has .NET installed on it.This image for instance The ideal flow is as follows. Select

Dockerizing a Windows Service

折月煮酒 提交于 2020-04-18 01:10:18
问题 I am new to docker and I have an application including a set of windows services (.NET). I d like to run it into a docker container. What should I do ? 回答1: In general, you should choose a base image which has the necessary libraries already installed on it as much as possible instead of taking a very base image such as plain Linux or Windows and installing on it. In your case, select a docker image which has .NET installed on it.This image for instance The ideal flow is as follows. Select

Connect with ssh to docker daemon on Windows

こ雲淡風輕ζ 提交于 2020-04-08 05:39:10
问题 I installed Docker Desktop for Windows on Windows 10 with https://docs.docker.com/docker-for-windows/install/#install-docker-for-windows. It not uses VirtualBox and default VM to host docker. I am able to run containers but how I connect to a docker with ssh? docker-machine ls does not show my docker host. Tried to connect to docker@10.0.75.1 but it requires password. And tcuser that used for boot2docker VM not matching: ssh docker@10.0.75.1 Could not create directory '/home/stan/.ssh'. The

Connect with ssh to docker daemon on Windows

只谈情不闲聊 提交于 2020-04-08 05:38:37
问题 I installed Docker Desktop for Windows on Windows 10 with https://docs.docker.com/docker-for-windows/install/#install-docker-for-windows. It not uses VirtualBox and default VM to host docker. I am able to run containers but how I connect to a docker with ssh? docker-machine ls does not show my docker host. Tried to connect to docker@10.0.75.1 but it requires password. And tcuser that used for boot2docker VM not matching: ssh docker@10.0.75.1 Could not create directory '/home/stan/.ssh'. The

Deploy traefik with docker stack on Windows Server 2019

二次信任 提交于 2020-04-07 08:04:51
问题 I want to run traefik on a docker swarm cluster powered by Windows Server 2019. It works while using docker network create and docker service create commands directly. But a seemingly identical compose file does not work. Any help is appreciated. PowerShell commands: # create network docker network create proxy --driver overlay --subnet 11.0.0.0/24 --gateway 11.0.0.1 # start traefik docker service create ` --name traefik ` --constraint node.role==manager ` --publish 80:80 ` --publish 8080

Deploy traefik with docker stack on Windows Server 2019

点点圈 提交于 2020-04-07 08:03:41
问题 I want to run traefik on a docker swarm cluster powered by Windows Server 2019. It works while using docker network create and docker service create commands directly. But a seemingly identical compose file does not work. Any help is appreciated. PowerShell commands: # create network docker network create proxy --driver overlay --subnet 11.0.0.0/24 --gateway 11.0.0.1 # start traefik docker service create ` --name traefik ` --constraint node.role==manager ` --publish 80:80 ` --publish 8080