2

I know Kubernetes has rest API to automate deploy docker image on it. and i know how to use it by Gitlab runner. I wonder if portainer has this feature to call a rest API and deploy my image on it ? I mean how to use recreate container or create container like in portainer ui as a pi service ? Is there any better way to do this?

1 Answer 1

5

What you can do, it add a stack to portainer that gets its docker-compose file from your gitlab git repository. Of course you need to add your gitlab registry as a docker registry to portainer first.

Sign up to request clarification or add additional context in comments.

3 Comments

Bart does it grab the rest of the repo as well (like Dockerfiles for images referenced in the docker-compose file using build/context), or is it just the docker-compose file that gets pulled?
Thank you Bart for giving some hope to a tired old man! Going to play with it tonight
Exactly what I was looking for. I was trying to add my repo as a container or as an image and it wasn't working. You have to add it as a stack.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.