Docker Compose not installed on new Server


C4ArtZ

Recommended Posts

I'm still getting my feet wet with Docker on Unraid, but I was looking yesterday for this in trying to install a docker from github that needs compose.  That search led me in finding a post on the web to install docker-compose in unraid.  Those steps were:

 

I do not know if this is the preferred method, but it did seem to work.

 

From this post here:

https://github.com/duhio/docker-compose-usenet

 

Add the following to /boot/config/go in order to install docker-compose on each boot:


COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose

  • Like 1
Link to comment
54 minutes ago, ptmuldoon said:

I'm still getting my feet wet with Docker on Unraid, but I was looking yesterday for this in trying to install a docker from github that needs compose.  That search led me in finding a post on the web to install docker-compose in unraid.  Those steps were:

 

I do not know if this is the preferred method, but it did seem to work.

 

From this post here:

https://github.com/duhio/docker-compose-usenet

 

Add the following to /boot/config/go in order to install docker-compose on each boot:

 


COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose

 

That doesn't seem to work for me. But atleast I get "Persmisson denied" instead of "Unknown command"

Link to comment
19 hours ago, ptmuldoon said:

Did you reboot unraid to get it start?

It's suppose to be 3 separate lines above like in that link.  Unsure why I can't get it show that way here in the forums.

That could be it. Should they be seperated like this?

 

COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) 

curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

Edit:
Just had another look at the link. No idea how I missed the new lines...

Edited by C4ArtZ
Missed something obvious
Link to comment
  • 3 months later...

I have come across this issue as well where after a reboot docker-compose is no longer available on the system. What is the reason for it not being persistent as is docker engine? is this "install docker-compose on boot" the only resolution. Has this affected anyones boot time?

Link to comment
5 hours ago, Be-Art said:

What is the reason for it not being persistent as is docker engine

Because Unraid unpacks the appropriate files from the flash drive when it boots up.

 

If you save the appropriate downloaded file onto the flash drive, and then at boot up time (via user-scripts plugin), you run a script that will install it.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.