For many using Podman just for development purposes can be a good fit
![docker desktop linux docker desktop linux](https://res.cloudinary.com/practicaldev/image/fetch/s--UrlEbpko--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zzagw1vphidl5d79kuez.png)
#DOCKER DESKTOP LINUX HOW TO#
This article will discuss how to set-up Podman as a drop-in replacement for Docker Desktop without having to remember a single new command in the command line. I found Podman to be a relatively simple replacement for Docker and thought a simple step by step procedure was worth documenting.
#DOCKER DESKTOP LINUX FREE#
While the Docker CLI is still free for everyone to use, this may be more troublesome to set-up on a windows environment without Docker Desktop. If not, please do read more about it here. For those of you reading this, you are all probably familiar with Docker’s recent licensing changes to Docker Desktop. Thanks to Docker open sourcing both their image specification and Docker Engine back in 2015, technologies like Podman have been able to containerise applications in a consistent yet compatible manner without too many troubles.
#DOCKER DESKTOP LINUX WINDOWS 10#
This was all a bit tricky in that you won’t find these images in a host Windows 10 search. You can switch back to Linux containers off the systray in the same way we switched over to the Windows containers… Switching to Linux containersĪfter a better understanding of how Docker was interacting with WSL and figuring that WSL was likely hiding much of it’s Linux file data internally somewhere I opened a WSL shell and started exploring… Location of docker image data under WSL Linux container imagesĪfter figuring my confusion on the Windows side I wanted to switch back to Linux containers and see if I could track down where the Docker images were being downloaded to. Now when you go into Settings still no ADVANCED section but… under Docker Engine we can see the daemon.json content… Setting the Docker data-root pathĬhanges done here within the Docker settings do get stored in the daemon.json file. To switch over to the ability to interact with Windows containers you have to explicitly perform that switch off the Docker Desktop systray icon… Switching to Windows containers I’m not sure if WSL is always chosen as the preferred container platform but it was for me.
![docker desktop linux docker desktop linux](https://4sysops.com/wp-content/uploads/2022/03/Docker-Desktop-Use-WSL2-based-engine.png)
In my case because I already had WSL installed that became the default container platform. Windows Subsystem for Linux ( WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10 and Windows Server 2019. I finally tracked the source of my confusion to not understanding how Docker Desktop was dealing with WSL. In my case this file didn’t exist but as outlined from the documentation above it’s fine to create it.Īfter creating a daemon.json file I restarted the docker service and… still no change in image storage location. Microsoft has a great overview of this process in their documentation here. I found several articles suggesting setting up a file daemon.json. Yes there is! The storage location is referenced as data-root.Īfter adding data-root entry in the JSON block which can be done directly in the Docker Engine text form I ran a restart which… failed! Something further was needed. JSON configuration data so perhaps there is a setting for setting the location of Docker image data. This was strange! Why couldn’t I see these settings? I switched over to the Docker Engine section… Docker Engine config settings Upon opening settings I found no such value. According to Windows Docker documentation there should be an ADVANCED item under Resources in the settings.
![docker desktop linux docker desktop linux](https://i.ytimg.com/vi/r6J0RqhxpA8/hqdefault.jpg)
I initially explored the Docker desktop settings looking for where I could set a path for data storage. I have a 6TB drive I like to storage large files on and the standard system “C” drive was not going to cut it. Specifically I was curious to see where Docker stores it’s images and how to modify that storage location.
![docker desktop linux docker desktop linux](https://i.stack.imgur.com/8IZzA.png)
While starting to explore Docker Desktop on Windows I found the documentation a bit confusing in some areas.