You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had problem running docker based Aider with different various error, as a last remedy rewrite userid to my differnet non 1000 one.
RUN useradd -m -u XXXXX -s /bin/bash appuser
As a longterm solution would be to add an entry script which would update appuser ids at runtime , smtnhg like this:
#!/bin/bashset -e
USER_NAME="appuser"
DEFAULT_UID=1000
DEFAULT_GID=1000
# Update appuser's UID and GID if APP_UID and APP_GID are providedif [ -n"$APP_UID" ] && [ -n"$APP_GID" ];thenecho"Updating $USER_NAME UID/GID to: $APP_UID:$APP_GID"# Update group ID
groupmod -g "$APP_GID""$USER_NAME"# Update user ID
usermod -u "$APP_UID" -g "$APP_GID""$USER_NAME"# Update ownership of relevant directories
chown -R $APP_UID:$APP_GID /home/$USER_NAME /app /venv
fi# Execute the container's commandexec"$@"
Update Dockerfile:
# Copy the entrypoint script and make it executable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# In the final image stage, set the entrypoint script while keeping appuser as default
USER appuser
ENTRYPOINT ["/entrypoint.sh", "/venv/bin/aider"]
run the image:
docker run -e APP_UID=$(id -u) -e APP_GID=$(id -g) myimage
Version and model info
No response
The text was updated successfully, but these errors were encountered:
Issue
I had problem running docker based Aider with different various error, as a last remedy rewrite userid to my differnet non 1000 one.
RUN useradd -m -u XXXXX -s /bin/bash appuser
As a longterm solution would be to add an entry script which would update appuser ids at runtime , smtnhg like this:
Update Dockerfile:
run the image:
Version and model info
No response
The text was updated successfully, but these errors were encountered: