jameson_uk Posted July 21, 2020 Share Posted July 21, 2020 I have added an image manually via the command line docker pull google/cloud-sdk:alpine Doing this means there is no icon, no options etc. I guess this isn't an issue as everything works but it would be nice to have it setup like the others. Do I just need to create a manual file in /boot/config/plugins/dockerMan/templates-user if so is the name I need my-container-name.xml or my-image-name.xml ?? Quote Link to comment
tjb_altf4 Posted July 21, 2020 Share Posted July 21, 2020 Are you doing anything that complex? I add non-CA dockers via the extended search which pulls results from all of dockerhub, you just need to configure your needed parameters then it works like any other unraid docker. Quote Link to comment
jameson_uk Posted July 21, 2020 Author Share Posted July 21, 2020 17 minutes ago, tjb_altf4 said: Are you doing anything that complex? I add non-CA dockers via the extended search which pulls results from all of dockerhub, you just need to configure your needed parameters then it works like any other unraid docker. I don't know enough about Docker to understand how to do what I want but after pulling the image I am creating the container via docker run -ti --name gcloud-config google/cloud-sdk:alpine gcloud auth login This creates the container and stores user credentials in it. I did try via CA but this created the container and I wasn't able to embed my credentails afterwards. I was using start instead of run but I am not sure the container is configured to be run (docker files for the image are https://github.com/GoogleCloudPlatform/cloud-sdk-docker). Quote Link to comment
D'n'S137 Posted July 21, 2020 Share Posted July 21, 2020 Hey, Go to docker page. Make sure there is the docker hub page in the Repository list:https://hub.docker.com/ Click on add Container give the Container a Name. As repository set "google/cloud-sdk"(without "" and it is case sensitive) Set the variables, path and everything else as described in docker hub and hit apply. https://hub.docker.com/r/google/cloud-sdk/ Greetings, stay healthy Quote Link to comment
jameson_uk Posted July 23, 2020 Author Share Posted July 23, 2020 On 7/21/2020 at 2:48 PM, D'n'S137 said: Hey, Go to docker page. Make sure there is the docker hub page in the Repository list: https://hub.docker.com/ Click on add Container give the Container a Name. As repository set "google/cloud-sdk"(without "" and it is case sensitive) Set the variables, path and everything else as described in docker hub and hit apply. https://hub.docker.com/r/google/cloud-sdk/ Greetings, stay healthy The config isn't variables. It is running a command within the container from the host. If I create the image this way (the same as going it via the extended search in CA) I cannot run the command. This is just running docker run -d --name='cloud-sdk' --net='bridge' -e TZ="Europe/London" -e HOST_OS="Unraid" 'google/cloud-sdk' I can't do a docker run as the container has been created and if I try and do a docker start, it just ends instantly. In the end I created the image as above (allowing me to add an image etc.) then I deleted the container docker -rm gcloud-config and finally created a new container using the run command. After that command is run you are able to start the container (although I don't actually need to) and it picks up all the details and images I set when I first added it. Didn't try adding the xml file manually but it looks like this is the only difference to when I created it via a docker pull Quote Link to comment
Recommended Posts
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.