"open /etc/docker/daemon.json: no such file or directory" Did I install the wrong Docker or is this error something else?

I'm on Pop!_OS Linux, and installed Docker Desktop for Linux since it mentioned it has Docker Compose too.

Then when I tried the 'build' command with 'docker compose up', I had this error, after it seemed everything had downloaded:

Error response from daemon: could not select device driver "nvidia" with capabilities: [[compute utility]]

So I went to install NVIDIA Container Toolkit. Following this guide:

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

Reached this command:

sudo nvidia-ctk runtime configure --runtime=docker

But ran into this error:

INFO[0000] Loading docker config from /etc/docker/daemon.json 
INFO[0000] Config file does not exist, creating new one 
INFO[0000] Flushing docker config to /etc/docker/daemon.json 
ERRO[0000] unable to flush config: unable to open /etc/docker/daemon.json for writing: open /etc/docker/daemon.json: no such file or directory

I tried this command from the next step:

sudo systemctl restart docker

And got this error:

Failed to restart docker.service: Unit docker.service not found.

Even though Docker is running, with its little icon in the top right.

I went into the dashboard for Docker Desktop, settings, the Engine tab. I made a small edit to the daemon.json and restarted Docker, but it didn't help. I checked my 'etc' folder, no "docker" was there. I searched the PC, it returned no hits for 'daemon.json'.

All the advice I keep seeing assumes you have the 'etc/docker' folder. Or that you have a 'etc/snap/docker' folder or something.

Did I just install the wrong Docker, or the wrong way? I used a debian file with Eddy to install it.