Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing config.v2.json file of a docker container (Windows 10 docker desktop)

Hello I need to change the ports of a running container (I want to update current container, not creating a new one).

Apparently one way to achieve this is by changing the config.v2.json file for the container in question.

But I am running Docker on a Windows 10 machine, and I cannot find where that file is (on Linux it is on /var/lib/docker/containers/[container-id]/config.v2.json and on Windows it used to be on c:\Programdata\Docker\Containers\[container-id]\config.v2.json but this is not the case anymore).

Anyone knows where to access that file nowadays?
Or maybe there is a better approach to change config params of an existing container? Thanks!

like image 274
user3621841 Avatar asked Sep 21 '25 07:09

user3621841


1 Answers

I found mine here (19.03.13-beta2)

\\wsl$\docker-desktop-data\version-pack-data\community\docker\containers\

For previous versions, it may be here

\\wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\data\docker

To access from within WSL \\wsl$ is /mnt/wsl

like image 62
Tedy Pranolo Avatar answered Sep 22 '25 21:09

Tedy Pranolo