Closed uplight-dev closed 1 week ago
Actually I realized I've userns remap active in my docker configs.
/etc/subuid
light:1000:65536
/etc/docker/daemon.json
{
"userns-remap": "light"
}
Is it possible to still make it work given this config?
Seems I had to use 1001 as user/group id.
In docker-compose.yml file:
services:
myservice:
build:
context: .
args:
USER_ID: 1001 # or any other user ID you want to pass
both docker images (ib-gateway and tws-rdesktop) use UID/GID 1000:1000, based on your needs you can update that
Before you submit this issue
If this is not an issue but a request for help, please post it on the discussions section. There is a search function that will help you find solutions to common problems.
Please make sure that you are running
latest
orstable
for eitherib-gateway
ortws-rdesktop
. Please run one of these as requiredPlease make sure that you are using the
docker-compose.yml
file provided as example, those files are tested and you should be able to get things working by using it.The example
.env
file on README.md contains safe default values. Make sure you test the container using it as starting point.If after all this work you are still facing problems, please open an issue.
Describe the bug
Getting this error when starting docker compose:
/home/ibgateway/scripts/common.sh: line 11: /home/ibgateway/ibc/config.ini: Permission denied
Seems that the files under /home/ibgateway are owned by user root.
To Reproduce
Steps to reproduce the behavior. Please include information related to docker, ex docker run command, .env file, docker-compose.yml.
Please provide the output of
docker compose config
MANDATORY ⚠️⚠️` name: algo-trader services: ib-gateway: build: context: /home/light/algotrader/ibgateway-build.dkr/stable dockerfile: Dockerfile tags:
Expected
The container starts as expected.
Container logs
If applicable, add the container logs
docker logs <CONTAINER>
ordocker compose logs
to help explain your problem. MANDATORY ⚠️⚠️Versions
Please complete the following information:
docker image inspect ghcr.io/gnzsnz/ib-gateway:tag
): [e.g. latest, stable] MANDATORY ⚠️⚠️docker images --digests
): [e.g. sha256:60d9d54009b1b66908bbca1ebf5b8a03a39fe0cb35c2ab4023f6e41b55d17894] MANDATORY ⚠️⚠️Additional context
Add any other context about the problem here.
What have you tried and failed.
My primary objective is to fix any bug on the container, ex Dockerfile, run.sh script, docker-compose.yml. Please don't expect upstream issues to be solved here (ex. IB gateway, IBC, etc)