Questions tagged [docker-for-windows]
Docker implementation for Windows, running on WSL2 or Hyper-V.
187
questions
1
vote
0
answers
19
views
Launch docker container from power shell fail, unexpected behavior?
I have created the following script in powershell for two objectives:
read from an .env file the setup of the local urls of my development environment and deploy them to the Windows hosts file.
take ...
0
votes
0
answers
160
views
Launch Docker Desktop's Container Via Windows Command-line
How do I launch a Docker container, which was created via Docker Desktop, using a Windows command line?
I have containers I created via Docker Desktop. I can launch them via Docker Desktop. I can also ...
0
votes
1
answer
1k
views
Docker Error : An unexpected error occurred, Restart Docker Desktop
I have installed Docker Desktop on Windows 11 using WSL 2 as the base.
It seems to be working fine internally.
However, every time I boot up or go to the settings screen,
I get the following error at ...
0
votes
1
answer
114
views
How do I access my Windows directory from docker running on wsl?
As an example, I have installed Audioserve on Docker running Ubuntu via WSL on Windows.
I would now like to add my audio folder but can not navigate to my Windows folders where they exist as I can ...
2
votes
1
answer
142
views
Why would Docker Desktop unpause itself in Windows 11
Given:
Docker Desktop (latest version) Version 4.19.0 (106363)
Windows 11 Pro 22H2
When I pause Docker Desktop, after a few minutes it will unpause itself. Anyone know why this might happen?
2
votes
0
answers
911
views
Docker on Windows is very slow
I have a Docker on Windows 10 which uses Ubuntu 20, WSL2, ... but it is very slow.
I tried to set up confuguration in .wslconfig file which looks like
# Limits VM memory to use no more than 4 GB, this ...
0
votes
1
answer
81
views
How to separate the container folder and images folder in Docker WSL2?
Ok, there is a post about changing the location of the Docker data, but what if I need to place the containers' filesystem on one drive (SSD) but keep images on another (HDD)?
Is there a way to do ...
0
votes
0
answers
347
views
"Invalid reference format: repository name must be lowercase" when installing via Docker
I'm trying to install SeaDAS via Docker and this should be the code to enter in the windows PowerShell:
docker run -v $HOME/ocssw:/root/ocssw-v $HOME/seadasClientServerShared:/root/...
0
votes
0
answers
591
views
Docker desktop fails to start after windows update
Windows 10
Edition Windows 10 Enterprise
Version 22H2
Installed on 7/20/2022
OS build 19045.2728
Experience Windows Feature Experience Pack 120.2212.4190.0
Docker was working fine this ...
1
vote
0
answers
800
views
Docker compose Error response from daemon, Ports are not available on Windows 11
I have following docker-compose.yml file:
services:
## NGINX
nginx:
container_name: zl-nginx
image: redis:alpine
restart: unless-stopped
networks:
- reza
ports:
- ...
3
votes
2
answers
2k
views
Docker on Windows: lots of disk space in %TMP%/docker-index
I have one Windows guest image I built and I've been running containers from it for a few days. It's a decently large image, probably 20GB of data, and the containers grow fairly large as well. It ...
4
votes
1
answer
24k
views
Cannot locate .wslconfig in user profile on windows 11
I am trying to do this step: https://degauss.org/troubleshooting.html#Parallel_Computing_on_Windows and I am completely new to docker and linux subsystem on windows (using Ubuntu 22.04.1) which ...
0
votes
1
answer
636
views
How can I run a Windows Docker container on Windows without "open \\.\pipe\docker_engine_windows: The system cannot find the file specified"?
I am running Docker 20.10.22 on Windows 10 Pro 64-bit.
In my Docker Desktop settings, I have using WSL 2 disabled:
I have Hyper-V enabled:
I have Docker Desktop in Windows containers mode instead of ...
0
votes
0
answers
353
views
Docker Desktop 4.15.0 Installation Failed Windows 10
Tried installing docker, looked through solutions and tried one that updated WSL on my pc but it still didn't work. Checked permissions in regedit and everything was enabled so I'm not too sure where ...
0
votes
1
answer
783
views
Cannot start WSL (using Win11 22H2)
I think this started happening after I updated my Windows 11. Current version is Windows 11, Version 22H2 (OS Build 22623.1037).
Initially, my Docker Desktop also stopped working, but I uninstalled it ...
0
votes
0
answers
94
views
Memory usage maxed out on Windows 10 with Task Manager's processes only showing a few GB used
I have been noticing when my computer sits overnight idle, after a day or few it gets increasingly slower. I once left it on for 5 days without using it, and when I came back it was completely ...
0
votes
1
answer
905
views
Is it possible to assign the host's IP address to a docker container running within it?
I am a total newbie to Docker and while I understand the difference between a container and a VM, I am not sure whether it is possible to assign the host's IP address (the 192.168.x.x one, not the 127....
0
votes
0
answers
29
views
Clarification on Docker for Windows install
I'm confused by the Docker for Windows install instructions at https://docs.docker.com/desktop/install/windows-install/
The instructions state:
"Containers and images created with Docker Desktop ...
1
vote
0
answers
360
views
mouse focus is locked on one window
I am having a very weird behavior, and it is happening frequently since I installed docker desktop.
The mouse focus locks to a certain window and cannot be changed. The keyboard works perfectly, but ...
0
votes
1
answer
1k
views
How to correctly mount/bind/... a local (host) dir into a docker container
I'm currently using Windows 11 and I try to construct a docker file for my development environment, which can be seen below. For me, the line RUN --mount=type=bind,target=/home/$username/src is ...
1
vote
1
answer
624
views
How to access host:port of a linux container from a windows container?
Basically I'm trying to access a Linux container via a Windows one on the same machine. From what I've read so far the easiest way to to do this via the host and registered ports but I'm having no ...
0
votes
1
answer
56
views
Docker Desktop can't start at first time in Windows 10
I click on the Docker Desktop icon, the Docker upload window appears and after some time it closes, I repeat these steps about 5 times to start successfully. I am using Windows 10 Pro, my processor is ...
2
votes
0
answers
460
views
How to recover/recreate docker-desktop and docker-destop-data wsl distro
I deleted all wsl distro in my system including docker-desktop and docker-desktop-data using wsl commands. Later I uninstalled docker. Removed WSL feature as well. Now after some days, I installed WSL ...
0
votes
1
answer
165
views
Configure Windows Container as NAT Router
Preface: Similar to this post, but need a windows specific solution.
I need to route traffic from a cluster of windows containers through another windows container within that same cluster. The goal ...
2
votes
1
answer
3k
views
How do I safely re-install a corrupt Docker-desktop installation on Windows 11 without losing containers and data (due to Docker failed to initialize)
To solve the issue described in detail below, I would like to know: if I re-install Docker desktop in the same folders, will my existing images, containers and data contents be retained or lost?
If so,...
0
votes
0
answers
1k
views
Virtual machine not working after installing Docker-a hypervisor has been detected. features required for hyper-v will not be displayed
Virtual machine not working after installing Docker-a hypervisor has been detected. features required for hyper-v will not be displayed.
enter image description here
I just installed docker desktop ...
0
votes
0
answers
78
views
Windows install docker from binary and set docker environemt variable
I have to install docker on Windows from binary.
I downloaded them and installed them as described in the documentation.
I can run docker ps in the folder I installed docker at.
Outside of this folder ...
0
votes
0
answers
25
views
Why does docker desktop continuously open new dashboard windows without user interaction
I have been using docker desktop for windows for quite a while but in the last couple of weeks, I noticed that after a few days up to a hundred of docker dashboard windows have been opened without any ...
15
votes
1
answer
3k
views
Start Docker Desktop minimized on Win10 after login
Is it possible to start Docker Desktop minimized after i log in on Windows?
I am aware that there is an option in the settings to enable the auto-startup
But when this is enabled, the full UI shows ...
1
vote
2
answers
304
views
more command not showing --More-- on Ubuntu for Windows
My 'more' command is not working as expected. Trying to use it with kubectl command, and it only displays the first few lines, an error, then the last lines, without allowing me to view the rest of ...
0
votes
1
answer
2k
views
Mount SMB share (CIFS) to container using secured credentials or token
I have a docker-compose setup that runs my Linux development environment on Windows. A number of these containers need to mount smb drives using LDAP credentials. The way this woks now is by adding a ...
1
vote
1
answer
2k
views
Getting Community Docker to Switch to Linux Containers in Windows (without relying on Docker Desktop.)
I have a very specific Docker/Windows question with very specific constraints. I hope I can find a conclusive answer ("no, it cannot be done", or "it can be done with these reproducible ...
0
votes
1
answer
184
views
How to stop jar from executing inside container, with green border?
Windows 10 (64-bit)
I'm trying to run an executable jar. It opens & runs fine, but there is a green border around the window, and any application which is opened by this app, also has a green ...
0
votes
0
answers
432
views
Windows returns to the same exact state after reboot
So, I'm using windows 11 on Lenovo Thinkpad E590. The problems started after installing Docker desktop and Splash. It was working just fine when suddenly blue screen of death appeared with syren like ...
0
votes
1
answer
868
views
Unable to run project on Docker from Visual Studio
So after many hours banging my head I decided to write.
I started a very simple console project on VS2022
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType&...
-1
votes
1
answer
855
views
Unable to use networking (apt-get) in Docker 12.04 under Windows
I must create a Docker container for Ubuntu 12.04.
I am setting up the container into a Windows 10 VM.
To get build tools, I need to get apt-get install to work, but it can't reach its sources.
I am ...
0
votes
1
answer
375
views
Am I misusing the --name argument for Docker?
This works:
docker run -it mcr.microsoft.com/windows:20H2 --isolation=hyperv
I get a CLI for the container, everything is good.
This doesn't work:
docker run -it mcr.microsoft.com/windows:20H2 --...
1
vote
2
answers
434
views
docker run mcr.microsoft.com/windows/servercore:ltsc2022 -i --isolation=hyperv resulting in errors. What am I doing wrong?
I'm running a valid, licensed copy of Windows 11 Pro.
> docker version
Client:
Cloud integration: v1.0.22
Version: 20.10.13
API version: 1.41
Go version: go1.16.15
Git ...
2
votes
1
answer
1k
views
Issues with installing the NVIDIA driver Ubuntu on WSL
I want to install Docker NVIDIA packages on Ubuntu Desktop (Windows 10 Pro is a host OS). I do have Docker runnung and now I am trying to install the NVIDIA driver for Ubuntu.
After the following ...
0
votes
1
answer
2k
views
docker build - use a containers network
I have a windows 10 host, using docker desktop 4.6.1. I have a docker-compose.yml which contains the two services vpn and app. What I want to achieve is, that the build process of docker already uses ...
6
votes
1
answer
7k
views
Docker Desktop for Windows GUI is not starting
I'm using Docker Desktop for Windows. It "suddenly" does not start. The Docker Desktop.exe process is running idle in the background. But there's no GUI, not even the tray icon.
It happened ...
1
vote
0
answers
808
views
How to make Docker container and the host on same Network Level?
I want to make docker container's IP accessible from the host, just like "Host-only network" that VirtualBox has.
Currently I can ping the windows host from docker container, but not the ...
1
vote
1
answer
4k
views
"The attempted operation is not supported for the referenced object type" when installing Ubuntu WSL on Windows 10
I'm trying to install Ubuntu using Windows Subsystem for Linux. But when running Ubuntu, it always it gives me L’opération tentée n’est pas prise en charge pour le type d’objet référencé
English :
...
2
votes
2
answers
460
views
Access Docker Desktop's volumes from WSL2 bash
How to access the volume of a Docker Desktop app from Windows WSL2 bash? I can see the \\wsl.localhost\docker-desktop-data\version-pack-data\community\docker\volumes just right from Windows Explorer, ...
0
votes
0
answers
2k
views
Hyper-V Windows VM's with the same speed and convenience as WSL?
WSL2 VM's start in seconds and are persistent. Windows Sandboxes are not persistent and setting up a Hyper-V VM's is a bit tricky and takes a bit of time to define - compared to the convenience of the ...
0
votes
1
answer
83
views
Running a python program which runs a SHELL script containg linux based command inside a windows base image docker
I want to run a SHELL SCRIPT file inside the windows base docker image. How to build a windows based docker image which has the functionality of running Linux scripts and supports Linux-based commands?...
0
votes
0
answers
61
views
Use windows environment variables in docker-compose.yaml file
I would like my Windows Username available in my (Linux) container as $WINDOWS_USERNAME using docker-compose. But when I try accessing it with ${env:USERNAME}, I get this error:
ERROR: Invalid ...
2
votes
1
answer
3k
views
I switched Docker over to WSL2 Is it safe to delete my Hyper-V folder?
I recently switched over from the legacy Docker desktop for windows(Hyper-V) to the WSL 2 based version. I am running out of space on my hard drive and noticed a folder at C:\Users\Public\Documents\...
5
votes
3
answers
21k
views
How to remove Docker distros from WSL?
I've installed Docker Desktop and Ubuntu 20.04 [Microsoft Store] on Windows 10 and see that I have three distros [below], but I want to get rid of docker-desktop and docker-desktop-data, as I don't ...
0
votes
0
answers
75
views
Install docker on windows: impossible to activate virtualization
Hi tried to install docker desktop (3.4.0) on my personal HP laptop (windows 10 home 21h1), but after a successful installation the program continues to crash, raising the exception for a missing ...