Docker image files must be named Dockerfile
with no extension. I typically edit these files using Visual Studio Code. Whenever I want to open one, I need to right click it and select Open With and then select Visual Studio Code from the list. For most files, which have a file extension, the Open With modal has a checkbox to remember the preferred application. Is there anyway to set a preferred application for files based on anything other than file extension, so that I could just double-click a Dockerfile
to edit it?
You can use information from here to assign files with no extension to a default program, but it seems it will apply to ALL files with no extension (docker or not).