Docker not working in Ubuntu Terminal #3891

Closed
opened 2026-01-30 23:32:37 +00:00 by claunia · 1 comment
Owner

Originally created by @anandijain on GitHub (Sep 16, 2019).

Environment

Windows Terminal (Preview)
Version: 0.4.2382.0
Microsoft Windows [Version 10.0.18362.356] 

Docker

Steps to reproduce

I installed docker via sudo apt-get, following this guide.

However, sudo systemctl start docker gives me the following error:
System has not been booted with systemd as init system (PID 1). Can't operate.

Other people said that sudo service docker start would work but that gives:
* Starting Docker: docker

Which looks fine, but when running any docker run command, I get:

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'. 

Expected behavior

I am expecting to have docker start up and run in the terminal.

Actual behavior

The actual behavior is that I get permission denied when connecting to the Docker daemon

Originally created by @anandijain on GitHub (Sep 16, 2019). # Environment ``` Windows Terminal (Preview) Version: 0.4.2382.0 Microsoft Windows [Version 10.0.18362.356] ``` Docker # Steps to reproduce I installed docker via `sudo apt-get`, following [this guide](https://docs.docker.com/install/linux/docker-ce/ubuntu/). However, `sudo systemctl start docker` gives me the following error: `System has not been booted with systemd as init system (PID 1). Can't operate.` Other people said that `sudo service docker start` would work but that gives: `* Starting Docker: docker` Which looks fine, but when running any `docker run` command, I get: ``` docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. ``` # Expected behavior I am expecting to have docker start up and run in the terminal. # Actual behavior The actual behavior is that I get permission denied when connecting to the Docker daemon
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-30 23:32:37 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Sep 16, 2019):

This is not a terminal issue. Please ask on the Docker forums or the WSL repository.

@DHowett-MSFT commented on GitHub (Sep 16, 2019): This is not a terminal issue. Please ask on the Docker forums or the [WSL repository](https://github.com/microsoft/wsl).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3891