docker-for-windows

Disallow egress from Docker containers on Docker for Mac

青春壹個敷衍的年華 提交于 2021-02-19 06:27:25
问题 I want to disable all outgoing connections that are initiated by docker containers to the outside world. I can do this in linux by adding a rule to the FORWARD chain in linux. How do I do this in Docker for Mac? I found out that Docker for Mac uses an xhyve vm and that’s where docker0 interface lives. What interface in the host does this connect to? I used nettop on Mac and I see that Docker uses my en0 wireless interface. But, I’m not sure if Docker and xhyve are using the same interface.

Permission problem: How to setup permissions on docker for windows for use with Wordpress

空扰寡人 提交于 2021-02-18 07:22:11
问题 The problem I'm trying to setup my developing environment using Docker for Windows for use with Wordpress. I'm using docker compose with a custom Dockerfile. This works perfectly on MacOS. Using the exact same docker setup on Windows though gets me these messages within Wordpress. Trying to upload media Trying to update Wordpress Clearly, Worpress doesn't have the correct file permissions. What I tried 1. Checking Docker for Windows settings and upgrading to WSL 2 I'm using the WSL 2 based

how to see adb devices on linux container when host is windows 7 machine

情到浓时终转凉″ 提交于 2021-02-17 05:06:15
问题 i have a windows 7 machine with docker tool box installed i downloaded image and running container which have adb installed in it from below link https://hub.docker.com/r/muicoder/adb/ The container is up and running, with container id mentioned below 9ba51613a7be on my host machine(windows 7) , i have nexus 6 connected and i can see the result with adb devices > C:\Users\panmishr>adb devices List of devices attached > * daemon not running; starting now at tcp:5037 > * daemon started

how to see adb devices on linux container when host is windows 7 machine

断了今生、忘了曾经 提交于 2021-02-17 05:05:17
问题 i have a windows 7 machine with docker tool box installed i downloaded image and running container which have adb installed in it from below link https://hub.docker.com/r/muicoder/adb/ The container is up and running, with container id mentioned below 9ba51613a7be on my host machine(windows 7) , i have nexus 6 connected and i can see the result with adb devices > C:\Users\panmishr>adb devices List of devices attached > * daemon not running; starting now at tcp:5037 > * daemon started

Docker Windows Local Registry: received unexpected HTTP status: 500 Internal Server Error

拈花ヽ惹草 提交于 2021-02-08 17:36:52
问题 I am attempting to push an image of a windows container to a "local" repository on a Windows VM, which has it's own IP address. So when I create the registry on my VM, I can view the repository list on my local machine by going to the ipaddress:5000 just fine. However, when I try to push an image to the registry it shows the layers to be pushed but at the bottom it says received unexpected HTTP status: 500 Internal Server Error. This isn't a problem when I switch to Linux containers. I can

Docker Windows Local Registry: received unexpected HTTP status: 500 Internal Server Error

半世苍凉 提交于 2021-02-08 17:36:04
问题 I am attempting to push an image of a windows container to a "local" repository on a Windows VM, which has it's own IP address. So when I create the registry on my VM, I can view the repository list on my local machine by going to the ipaddress:5000 just fine. However, when I try to push an image to the registry it shows the layers to be pushed but at the bottom it says received unexpected HTTP status: 500 Internal Server Error. This isn't a problem when I switch to Linux containers. I can

Can't change the permissions of files/folders on a volume with Docker windows

半世苍凉 提交于 2021-02-08 10:22:42
问题 I tried to change the permissions of files/folders on a volume with Docker windows. But the permissions are not changed, unexpectedly. Environment: Host: Windows 10 Pro Docker version 17.09.0-ce, build afdb6d4 Step to reproduce: Build a image with the Dockerfile below. Run a container with a volume. Change the permissions of files/folders. Dockerfile: FROM microsoft/windowsservercore CMD [ "powershell" ] Outputs: D:\data\docker\sample>docker build -t sample . Sending build context to Docker

SQL Server 2014 SP2 does not start on Windows Docker

自作多情 提交于 2021-02-08 08:22:29
问题 I want to install and use SQL Server 2014 SP2 on Windows Docker. But the SQL Server service does not start. Steps to reproduce: Download "Microsoft SQL Server 2014 Service Pack 2 (SP2) Express" English version from https://www.microsoft.com/en-US/download/details.aspx?id=53167. Execute the "SQLEXPR_x64_ENU.exe", extract to "SQLEXPR_x64_ENU" folder, and cancel the installer. Write Dockerfile as below. Execute "docker build -t sample .". Execute "docker run --name sample -i --rm sample".

SQL Server 2014 SP2 does not start on Windows Docker

微笑、不失礼 提交于 2021-02-08 08:21:05
问题 I want to install and use SQL Server 2014 SP2 on Windows Docker. But the SQL Server service does not start. Steps to reproduce: Download "Microsoft SQL Server 2014 Service Pack 2 (SP2) Express" English version from https://www.microsoft.com/en-US/download/details.aspx?id=53167. Execute the "SQLEXPR_x64_ENU.exe", extract to "SQLEXPR_x64_ENU" folder, and cancel the installer. Write Dockerfile as below. Execute "docker build -t sample .". Execute "docker run --name sample -i --rm sample".

How to configure multiple services/containers in Kubernetes?

跟風遠走 提交于 2021-02-08 06:09:39
问题 I am new to Docker and Kubernetes. Technologies used: Dotnet Core 2.2 Asp.NET Core WebAPI 2.2 Docker for windows(Edge) with Kubernetes support enabled Code I am having two services hosted into two docker containers container1 and container2. Below is my deploy.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: webapi-dockerkube spec: replicas: 1 template: metadata: labels: app: webapi-dockerkube spec: containers: - name: webapi-dockerkube image: "webapidocker:latest"