-
Notifications
You must be signed in to change notification settings - Fork 4.5k
🐛 octavia-cli: fix write permissions in ubuntu #11353
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
🐛 octavia-cli: fix write permissions in ubuntu #11353
Conversation
aac5fab
to
d067299
Compare
octavia-cli/README.md
Outdated
@@ -104,7 +104,7 @@ This script: | |||
```bash | |||
touch ~/.octavia # Create a file to store env variables that will be mapped the octavia-cli container | |||
mkdir my_octavia_project_directory # Create your octavia project directory where YAML configurations will be stored. | |||
docker run --name octavia-cli -i --rm -v ./my_octavia_project_directory:/home/octavia-project --network host --env-file ~/.octavia airbyte/octavia-cli:latest | |||
docker run --name octavia-cli -i --rm -v ./my_octavia_project_directory:/home/octavia-project --network host --user $(id -u):$(id -g) --env-file ~/.octavia airbyte/octavia-cli:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have two white spaces before --user
Nice! I tried |
@alafanechere is it normal that the directories created by
|
What
octavia init
andoctavia generate
commands require write permissions to the docker host filesystem.docker run
command did not provide these permissions explicitly, it makes theoctavia init
command fails on Ubuntu with aPermissionDenied
error.How
Map the current host user to the container using the
--user
option in the docker run command.