bash - IBM/secure-gateway-client docker run with the --F (acl file) option -


i have been reading documentation , still cannot work out how ibm/secure-gateway-client run acl file option within docker.

i have pulled client docker image, , have been using following syntax:

bash -c 'nohup docker run ibmcom/secure-gateway-client --f aclfile.txt xxx_stage_ng  > tmp/run_sgc.log 2>&1 &' 

all in log following:

[2015-09-30 11:30:41.764] [error] exception occurred reading or processing acl file, error error: enoent, no such file or directory 'aclfile.txt' [2015-09-30 11:30:41.764] [warn] acl has been set deny until fixed. [2015-09-30 11:30:43.779] [info] secure gateway tunnel connected 

i have given full path file, no path (as above) , interim option can think of. container runs, not options want specify in acl file.

this did:

1) created dockerfile include aclfile.txt

from ibmcom/secure-gateway-client add aclfile.txt /tmp/aclfile.txt 

2) built new docker image

docker build -t ads-secure-gateway-client . 

3) run new docker image (need specify -t , -i options, otherwise error file not found):

docker run -t -i ads-secure-gateway-client  --f /tmp/aclfile.txt 

4) got following output:

[2015-09-30 16:50:32.084] [info] current access control list being reset , replaced user provided batch file: /tmp/aclfile.txt [2015-09-30 16:50:32.086] [info] acl batch file process accepts acl allow :8000 [2015-09-30 16:50:32.087] [info] acl batch file process accepts acl deny localhost:22 

i hope helps.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -