Jump to content
  • 0

Help wiith Docker build


Pete Stothers
 Share

Question

I'm trying to build on my Synology NAS but I don't understand the syntax. Can someone point me in the right direction?

root@DS:/volume1/docker/antms# ls
ams.zip  Dockerfile  @eaDir
root@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
root@DS:/volume1/docker/antms#


Link to comment
Share on other sites

  • Answers 8
  • Created
  • Last Reply

Top Posters For This Question

8 answers to this question

Recommended Posts

  • 0
Sorted! Needed this. (added a space and full stop after name tag to define dockerfile as local directory)

docker build --network=host -t ams . --build-arg AntMediaServer=ams.zip

On Sunday, 10 November 2019 02:32:30 UTC+13, Pete Stothers wrote:
I'm trying to build on my Synology NAS but I don't understand the syntax. Can someone point me in the right direction?

root@DS:/volume1/docker/antms# ls
ams.zip  Dockerfile  @eaDir
root@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
root@DS:/volume1/docker/antms#


Link to comment
Share on other sites

  • 0
Turns out that even though it now runs, it does not complete exiting with the following error.

Please give the Ant Media Server zip file as parameter
./install_ant-media-server.sh  ant-media-server-....zip
The command '/bin/sh -c cd home     && pwd     && ./install_ant-media-server.sh ${AntMediaServer}' returned a non-zero code: 1

I changed the build command to docker build --network=host -t ams:1.8.1 --build-arg AntMediaServer=ant-media-server-community-1.8.1-20190828_0800.zip . and it still fails.

On Sunday, 10 November 2019 10:15:48 UTC+13, Murat Aydin wrote:
Thanks for sharing the solution!



--
Murat AYDIN
------------------
Senior Software Engineer
Member at GDG Ankara

lPEMhkTVGL8uB_RSmXadM6AELTcoaFj5iUbcFMyuoEHl6cDeVEeCfbzO6WacsRQhOMTCgWoRK-9VetMj9b0CX3abuxLgELWYEL4zMRyVePYtlQ=w5000-h5000  tQTYLHfPgv3tfE_-afjCb6e44vRVP3a63RM6BFXaIuEfHYFPFIiRLBi1co-YRZlFChyYg4mxJCot8dtPe2lFlsD9IeT5Nvcczr6tzO7T_j_t4A=w5000-h5000 
Blog   : www.ottodroid.net

Link to comment
Share on other sites

  • 0
  • 0
Sure did to the best of my ability.

On Sunday, 10 November 2019 11:42:42 UTC+13, Murat Aydin wrote:



--
Murat AYDIN
------------------
Senior Software Engineer
Member at GDG Ankara

lPEMhkTVGL8uB_RSmXadM6AELTcoaFj5iUbcFMyuoEHl6cDeVEeCfbzO6WacsRQhOMTCgWoRK-9VetMj9b0CX3abuxLgELWYEL4zMRyVePYtlQ=w5000-h5000  tQTYLHfPgv3tfE_-afjCb6e44vRVP3a63RM6BFXaIuEfHYFPFIiRLBi1co-YRZlFChyYg4mxJCot8dtPe2lFlsD9IeT5Nvcczr6tzO7T_j_t4A=w5000-h5000 
Blog   : www.ottodroid.net

Link to comment
Share on other sites

  • 0

Here are my steps:

  1. I've set up a folder called antsms here /volume1/docker/
  2. Created thedockerfile in that folder
  3. Downloaded the zip file and saved it inthat folder too asant-media-server-community-1.8.1-20190828_0800.zip
  4. Logged in as rootand run docker build --network=host -t ams:1.8.1 --build-argAntMediaServer=ant-media-server-community-1.8.1-20190828_0800.zip .
I'm using the dockerfile from the instructions page.


On Sunday, 10 November 2019 12:08:33 UTC+13, Murat Aydin wrote:
Could you please share your docker file and all the commands you run?



--
Murat AYDIN
------------------
Senior Software Engineer
Member at GDG Ankara

lPEMhkTVGL8uB_RSmXadM6AELTcoaFj5iUbcFMyuoEHl6cDeVEeCfbzO6WacsRQhOMTCgWoRK-9VetMj9b0CX3abuxLgELWYEL4zMRyVePYtlQ=w5000-h5000  tQTYLHfPgv3tfE_-afjCb6e44vRVP3a63RM6BFXaIuEfHYFPFIiRLBi1co-YRZlFChyYg4mxJCot8dtPe2lFlsD9IeT5Nvcczr6tzO7T_j_t4A=w5000-h5000 
Blog   : www.ottodroid.net

Link to comment
Share on other sites

  • 0
Tested in a Linux VM inside Promox and although it works well, it does not suit for my application. Case Closed.

On Sunday, 10 November 2019 02:32:30 UTC+13, Pete Stothers wrote:
I'm trying to build on my Synology NAS but I don't understand the syntax. Can someone point me in the right direction?

root@DS:/volume1/docker/antms# ls
ams.zip  Dockerfile  @eaDir
root@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
root@DS:/volume1/docker/antms#


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...