Score:1

Change the Docker context in Docker-Desktop

id flag

I installed Docker-Desktop on Ubuntu 22.04.
Docker-Desktop use the desktop-linux context while I want to use the 'default' context.
Where is the configuration parameter to change the context used by Docker-Desktop ?
Thanks,
Jeff

Score:1
mn flag
  • To change the context used by Docker-Desktop from 'desktop-linux' to 'default', you can follow these steps:

    Open the Docker-Desktop settings by clicking on the Docker icon in the system tray and selecting "Settings".

    In the "General" tab, scroll down to the "Command Line" section and click on the "Advanced" button.

    In the "Docker Engine" section, add the following line to the text box:

    json Copy code { "default-context": "default" } Click "Apply & Restart" to save the changes and restart Docker-Desktop.

    After restarting Docker-Desktop, it should now be using the 'default' context instead of 'desktop-linux'.

Foxrider83 avatar
id flag
If I modify the configuration file like this : `{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false, "features": { "buildkit": true } }` Docker-Desktop won't start anymore.
aibrahim avatar
us flag
when I modified the configuration as described it failed to start.
Score:1
gl flag

You can run command docker context use default in terminal.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.