Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
469 views
in Technique[技术] by (71.8m points)

docker - Unoconv call (openoffice) from other container

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


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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...