While installing Docker Desktop using the command in Ubuntu sudo apt-get install ./docker-desktop-<version>-<arch>.deb
I’m getting bash: version: No such file or directory' error.
The log is –
sudo apt-get install ./docker-desktop-<version>-<arch>.deb
Hit:2 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Fetched 324 kB in 2s (139 kB/s)
Reading package lists... Done
bash: version: No such file or directory
But the Docker Engine has been configured successfully.
Running docker --version I am getting
Docker version 20.10.14, build a224086
2
Answers
You can use the apt:
Full instruction: here
When you read the page at https://docs.docker.com/desktop/install/ubuntu/ and it says
sudo apt-get install ./docker-desktop-<version>-<arch>.deb
it actually means that you should insert the current values for the placeholders that are
<version>
and<arch>
. This could be something like20.10.16~3
andamd64
, it will depend on what is in their repo at the time.The error you got from
bash
, namelybash: version: No such file or directory' error
is a side-effect of the<
and>
having special meaning tobash
so it saw a redirect. The error was local to your computer though.