Podman ssh permissions problem #26304
-
Enviroment:
Hello, I am just getting started with podman as replacement for our development stack on ansible. We have our container configured with these lines in our Dockerfile
But the container has not set the permissions this is what the cli gives as output
i dont if it hase something to do with the devcontainer.json but here is the file {
"name": "ansible-dev-container-podman",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
//"image": "ghcr.io/ansible/community-ansible-dev-tools:latest",
"containerUser": "root",
"postCreateCommand": "chmod +x /workspaces/demo/scripts/*.sh",
"runArgs": [
"--cap-add=CAP_MKNOD",
"--cap-add=NET_ADMIN",
"--cap-add=SYS_ADMIN",
"--cap-add=SYS_RESOURCE",
"--device",
"/dev/fuse",
"--security-opt",
"seccomp=unconfined",
"--security-opt",
"label=disable",
"--security-opt",
"apparmor=unconfined",
"--security-opt",
"unmask=/sys/fs/cgroup",
"--userns=host",
"--hostname=ansible-dev-container"
],
"customizations": {
"vscode": {
"extensions": [
"redhat.ansible",
"oderwat.indent-rainbow",
"srobert0560.sr-ansible-snippets",
"donjayamanne.githistory",
"eamodio.gitlens",
"ryanolsonx.solarized",
"emmanuelbeziat.vscode-great-icons",
"ms-azuretools.vscode-docker"
]
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Is A symptom of that could be
(The command Maybe it would work if you changed the filepath |
Beta Was this translation helpful? Give feedback.
Is
/workspaces/demo
a volume? One theory could be that you bind-mount a directory from a filesystem that does not support traditional Unix permissions.A symptom of that could be
(The command
chmod 600 private_key
succeeds but afterwards the fileprivate_key
has permission777
)Maybe it would work if you changed the filepath
/workspaces/demo/private_key
to be outside/workspaces/demo
?