Latest Docker Desktop version 4.2 has no Settings Link for Shared Drive

Viewed 258

In the settings of the earlier version 3 of Docker Desktop, there is a link on the page for Shared Drives. I have version 4.2 on my desktop and it shows only the following:

General
Resources
Docker Engine
Experimental Features
Kubernetes
Software Updates

Is there a way to share without this feature in the Settings listing?

1 Answers

Assuming, you have your docker-compose.yml as the starting point for your Docker container, all you have to do to mount a shared drive and to be able to use it from within your container, is to add a volume for your shared drive:

version: '3.8'

services:
  your-service:
    image: '...'
    volumes:
      - shared-drive-1:/your_directory_within_container

volumes:
  shared-drive-1:
    driver_opts:
      type: cifs
      o: "username=your username,password=your password"
      device: "//192.168.1.101/..." 
Related