Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run program "docker" (in directory ... #16

Open
lhehjvgtycsd opened this issue Oct 29, 2017 · 8 comments
Open

Cannot run program "docker" (in directory ... #16

lhehjvgtycsd opened this issue Oct 29, 2017 · 8 comments

Comments

@lhehjvgtycsd
Copy link

Hi,

I've installed openFOAM v1606+ and HELYX-OS v2.4.0 per the installation process "Installation of the Latest 64 Bit Linux Binaries" on the github page. HELYX opens up fine but when I come to generate a mesh I get 'Cannot run program "docker" (in directory ...

See attached screenshot.

Any ideas?

screenshot from 2017-10-29 17 24 53

@bonanza123
Copy link

bonanza123 commented Oct 30, 2017

Did you try apt-get update && apt-get install docker ?
Also make sure that your user is in the docker group: sudo gpasswd -a $USER docker

@lhehjvgtycsd
Copy link
Author

Many thanks for your help! Unfortunately neither of the above worked. I should point out that I'm not a Linux expert so when you see the cut-and-paste from my terminal window you will see that $USER appears. After this I realised this was probably supposed to be my username - but that didn't work either.

Have you got any other ideas?

terminal output below...

Fetched 6,979 kB in 13s (520 kB/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CD2E95CE2F98D3F7
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
x@x:/Engys/HELYX-OS/v2.4.0$ sudo gpasswd -a $USER docker
gpasswd: group 'docker' does not exist in /etc/group
x@x:
/Engys/HELYX-OS/v2.4.0$ sudo gpasswd -a $x docker
gpasswd: user 'docker' does not exist
x@x:~/Engys/HELYX-OS/v2.4.0$

@bonanza123
Copy link

The first command must also be run as root so do sudo apt-get update && sudo apt-get install docker
The second command, try sudo usermod -a -G docker $USER

@lhehjvgtycsd
Copy link
Author

Still no luck I'm afraid! See output from terminal below ...

x@x:$ sudo usermod -a -G docker $x
[sudo] password for x:
usermod: group 'docker' does not exist
x@x:
$

@bonanza123
Copy link

Did the first install command work?
If not then its clear the group docker does not exist yet.

@lhehjvgtycsd
Copy link
Author

Here's what I get when I run the two commands - apologies for not coming up with useful suggestions but Linux is new to me!

terminal output below...

The following NEW packages will be installed
docker
0 to upgrade, 1 to newly install, 0 to remove and 5 not to upgrade.
Need to get 12.2 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ trusty-updates/universe docker amd64 1.5-1 [12.2 kB]
Fetched 12.2 kB in 0s (113 kB/s)
Selecting previously unselected package docker.
(Reading database ... 530852 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_amd64.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up docker (1.5-1) ...
x@x:$ sudo usermod -a -G docker $x
usermod: group 'docker' does not exist
x@x:
$

@bonanza123
Copy link

bonanza123 commented Nov 2, 2017

Ok, then check whether ubuntu is maybe using a different and auto-configured group (docker needs to be installed, as it seems you did it just before) name for docker by doing grep -i docker /etc/group if that is completely empty, do sudo groupadd docker. If it was not empty, use the previously posted command to add your user to the posted group.

@lhehjvgtycsd
Copy link
Author

You know, I'm wondering if OpenFOAM is actually installed on my box? In the GitHub installation instructions for HELYX-OS there is a step where it says it will automatically install OpenFOAM along with HELYX-OS and this was the option I selected but I'm not sure it worked. I can't find any folders relating to openfoam OR docker. That is just by searching from the Ubuntu file manager - perhaps there is a smarter way. What are the default locations for openfoam and docker so I can check to see if they are actually there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants