@leetwanker wrote:
I'm following the instructions on this page for my Synology NAS.
$ id -u docker
1029I make the Dockerfile and start.sh files, plug in my user id and the lastest version of flexget, run the command and get this:
$ sudo docker build --build-arg DOCKER_UID=1029 -t flexget:2.21.18 .
Password:
Sending build context to Docker daemon 5.632kB
Step 1/11 : FROM python:3.6-alpine
---> 35bb01a3d284
Step 2/11 : ARG DOCKER_UID
---> Using cache
---> dae7662feeaa
Step 3/11 : RUN adduser -D -u ${DOCKER_UID} flexget
---> Running in 8008051206ee
BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary.Usage: adduser [OPTIONS] USER [GROUP]
Create new user, or add USER to GROUP
-h DIR Home directory -g GECOS GECOS field -s SHELL Login shell -G GRP Group -S Create a system user -D Don't assign a password -H Don't create home directory -u UID User id -k SKEL Skeleton directory (/etc/skel)
The command '/bin/sh -c adduser -D -u ${DOCKER_UID} flexget' returned a non-zero code: 1
And this is where I'm stuck.
Edit: If I hardcode the uid into the dockerfile and don't depend on the argument the rest of the build goes fine:
Successfully built sqlalchemy pyrss2gen markupsafe tzlocal rpyc aniso8601 babelfish flask-compress rebulk guessit future terminaltables colorclass feedparser zxcvbn-python pyyaml progressbar itsdangerous pynzb
Installing collected packages: chardet, plumbum, click, itsdangerous, werkzeug, markupsafe, jinja2, flask, flask-login, six, cheroot, python-dateutil, aniso8601, pytz, jsonschema, flask-restplus, flask-restful, sqlalchemy, urllib3, zipp, pyrss2gen, tzlocal, rpyc, beautifulsoup4, webencodings, importlib-metadata, path.py, tempora, portend, cherrypy, html5lib, babelfish, idna, flask-compress, certifi, requests, rebulk, guessit, apscheduler, future, terminaltables, colorclass, pyparsing, feedparser, zxcvbn-python, pyyaml, progressbar, pynzb, flask-cors, flexget
Successfully installed aniso8601-1.2.1 apscheduler-3.5.0 babelfish-0.5.5 beautifulsoup4-4.6.0 certifi-2017.4.17 chardet-3.0.3 cheroot-5.5.0 cherrypy-10.2.2 click-6.7 colorclass-2.2.0 feedparser-5.2.1 flask-1.0.2 flask-compress-1.4.0 flask-cors-3.0.2 flask-login-0.4.0 flask-restful-0.3.6 flask-restplus-0.10.1 flexget-2.21.18 future-0.16.0 guessit-3.0.3 html5lib-0.999999999 idna-2.5 importlib-metadata-0.8 itsdangerous-0.24 jinja2-2.10.1 jsonschema-2.6.0 markupsafe-1.0 path.py-11.5.0 plumbum-1.6.3 portend-1.8 progressbar-2.5 pynzb-0.1.0 pyparsing-2.2.0 pyrss2gen-1.1 python-dateutil-2.6.1 pytz-2017.2 pyyaml-3.13 rebulk-0.9.0 requests-2.21.0 rpyc-4.0.1 six-1.10.0 sqlalchemy-1.3.3 tempora-1.8 terminaltables-3.1.0 tzlocal-1.4 urllib3-1.24.2 webencodings-0.5.1 werkzeug-0.14.1 zipp-0.3.3 zxcvbn-python-4.4.15
Removing intermediate container 562392315a3d
---> 604e6eb9392c
Step 8/11 : COPY start.sh /home/flexget/
---> d7042c7db873
Step 9/11 : RUN chmod +x ./start.sh
---> Running in 7f30c99bc4fe
Removing intermediate container 7f30c99bc4fe
---> 82712391834f
Step 10/11 : USER flexget
---> Running in cd5c319f4c06
Removing intermediate container cd5c319f4c06
---> 4e77f8996921
Step 11/11 : CMD ["./start.sh"]
---> Running in 5bb459c0170d
Removing intermediate container 5bb459c0170d
---> 4dedf8ad037e
Successfully built 4dedf8ad037e
Successfully tagged flexget:2.21.18Except that I get errors in the log about
/bin/sh: can't open './start.sh': permission denied.
Thanks
Posts: 1
Participants: 1