Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am new in linux and docker. I need to convert odt files to pdf from php container. I use php-5.6-apache and https://github.com/xiaojun207/openoffice4-daemon:

sudo docker build --pull -t xiaojun207/openoffice4-daemon –build-arg OO_VERSION=4.1.7 .

sudo docker run -d --restart unless-stopped -u 123456 –name soffice –net my-network -p 8100:8100 -v /data/output-odt:/pdfs/:rw xiaojun207/openoffice4-daemon:latest

sample of openoffice4-daemon works well from host:

sudo docker run -v /var/output-odt:/pdfs:rw xiaojun207/openoffice4-daemon –net my-network unoconv --connection ‘socket,host=127.0.0.1,port=8100,tcpNoDelay=1;urp;StarOffice.ComponentContext’ -f pdf /pdfs/test.odt

But I need to execute it from my php container. docker run is not possible from other container. How can I do it? Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
324 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...