-
Notifications
You must be signed in to change notification settings - Fork 15
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
SSH access is not being granted to the local user #211
Comments
Hi @antonag32, I tried to fix this myself, but it's taking me more than just a few minutes which it's what I though it would. I looked at this and the SSH key is actually being added at this point. However, once the step finishes, file is restored as it was before the step started. I also noticed, the previous way to do the same (without DeployV) was by a Could you have a look to this issue, please? CC @moylop260 |
Since /home/odoo/.ssh is marked as a volume in the parent image, changes to files in the directory during docker build are being lost when a new container is created. Therefore the authorized_keys file is set directly on the host and copied over to the container. Closes Vauxoo#211.
So I looked around, tried different things, and ended up noticing that the .ssh folder is marked as a volume, which explains why authorized keys is not being persisted, apparently copied files do stay the same as they were originally. This makes me wonder if therefore this feature has ever worked? I think the best solution would be to remove the volume from the base dockerfile (found in DeploV Static repo) but I have created a PR that fixes it in a different way. |
Since /home/odoo/.ssh is marked as a volume in the parent image, changes to files in the directory during docker build are being lost when a new container is created. Therefore the authorized_keys file is set directly on the host and copied over to the container. Closes Vauxoo#211.
Since /home/odoo/.ssh is marked as a volume in the parent image, changes to files in the directory during docker build are being lost when a new container is created. Therefore the authorized_keys file is set directly on the host and copied over to the container. Closes #211.
If I create a new container and try to access using SSH, I'm asked for the odoo user's password.
I checked the file
/home/odoo/.ssh/authorized_keys
and it's empty.The text was updated successfully, but these errors were encountered: