Portainer

28 readers
0 users here now

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments.

founded 11 months ago
MODERATORS
1
 
 

I have a free 5 node license for portainer prior to it being reduced to 3. Will it remain 5 when it renews automatically?

2
 
 

I don't typically use portainer, but I do have it installed. I usually only use it to visualize things, and do everything in docker compose but I would like to have more control inside portainer.

I've read all about this error and the typical solution is to add team or user acl label to docker containers, but I did this and had no luck. I can see the permissions update in portainer, but still says they are external.

I am a single user, who is admin in portainer, so the acls are pointless as admin already has these permissions.

Outside of deleting all the docker compose files and re-creating them in portainer, is there a way have stack functionality within portainer?

If I do switch to creating stacks in portainer, is there a way to get it to name them better than just 1, 2, 3 in the compose folder if I decide to move away from it?

3
 
 

I'm using Community Edition trying to use 'Stacks' which resides on a proxmox node.

I'm a bit confused how to read in config files to portainer from either a git repo or locally.

For example, I have this example in my docker-compose.yml file where I read in a config file in the same directory called 'prometheus.yml':

version: '3'

services:
  prometheus:
    image: prom/prometheus
    container_name: prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--web.enable-lifecycle'
    ports:
      - 9090:9090
    restart: unless-stopped
    volumes:
      - /home/phil/gitrepos/prometheusTesting/:/etc/prometheus/
      - prom_data:/prometheus
volumes:
  prom_data:

The stack launched but then in the container log I saw this error:

ts=2023-11-26T18:36:49.719Z caller=main.go:487 level=error msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="read /etc/prometheus/prometheus.yml: is a directory"

I also tried via git repository but portainer complaine about the relative path which has thrown me because I thought portainer would just clone the repo and run as is..

version: '3'

services:
  prometheus:
    image: prom/prometheus
    container_name: prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--web.enable-lifecycle'
    ports:
      - 9091:9091
    restart: unless-stopped
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml
      - prom_data:/prometheus

So.. How do I handle passing in these config files? Any examples would be super useful.

4
 
 

Hello all,

I've been using Portainer for roughly 6 months now, and I'm having what I believe to be an odd issue with several of my containers.
I have about 19 containers running, and the vast majority are running smoothly, but three of them are giving me trouble with their ports. I have Heimdall, Wizarr (a Plex invitation agent, relatively new), and Overseer that all run with ports in the 3276x to 3277x range (I think within 5 digits, between 68 and 73). There seems to be a "random" issue that when Portainer restarts, the ports for ONLY these three containers swap around. Like stated above, all my other containers run fine and their ports never change. I've noticed it definitely happens if my server has to restart for any reason, but I swear it's happened at other random times (I just can't say with any certainty as I haven't logged it).

Has anyone seen an issue like this before? Is there anyway to lock down the ports to each container after they've already been deployed?

Thanks for any help anyone can provide.

5
 
 

Newbie here.

I have Portainer (CS) v2 up and running.

I set up a Volume to use CIFS to my NAS

I set a Container to map the path in the container to Volume


I can read the files in the CIFS Share, I can not write to them.


I assume this is permitions. The usrer ID logging into the NAS has the permitions,

Is it a

  • PUID
  • PGID

issue? if so, what should I use, or how do I find the User ID / Group ID for the CIF Share?

6
 
 

Hi everyone,

i need to have interaction with one of my containers.
Is it possible to do this inside the portainer?

Best Regards, Shahram

https://preview.redd.it/7q122fcklj2c1.png?width=3245&format=png&auto=webp&s=a3e9c507cdf8c69764399fe72f0732b932f1e76a

7
 
 

I have 3 portainer servers on different VPS's on different providers.
I'd like to centrally manage them using one, but I guess be able to login to each one if there is an issue.
Do I need to install both the server and agent on both the 'remote' machines, or can I just have the server and use that.

8
 
 

I have attempted to google and have found a few things but none of it really makes sense to me (beginner in the Ubuntu server / Portainer / Docker space)

I have installed Ubunut server 22.04 and used the inbuilt docker as part of the intial install.

From there I installed Portainer

docker volume create portainer_data

sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

I then added NFS shares from another server via fstab

Then when in Portainer - from what I gathered I should have been able to set bind to /media/nfsshare1

But that does not work.

And then when attempting to add an NFS volume the containers can't see anything or use them if I point them to the volume.

Any help - or step by step idiot guide for this would be super appreciated

9
10
 
 

Maybe crazy simple, but i can't seem to find where i can edit a file from the host system?

i can go into a console inside the container, but i would like to edit from the host system, where is it located? my google seems to be not strong enough...

thanks.

11
 
 

Hi,
I'm failing big time to deploy the official netbox docker-compose on Portainer. I love Portainer and I would like to have netbox as a stack on Portainer. But I can't make it work even spending more than just a couple of evenings.
I have forked the repo and used it to deploy from the git repo, using additional paths for docker-compose. override.yml

I have tried it as a simple docker-compose up and it worked, but not how I wont it.

sad face.

12
 
 

Hi all!

I am looking at trying to get NPM - NGINX proxy manager working, and for the life of me cant get it working.

git is installed, and i have tried with #master and without, still no luck, so now i am trying here.

maybe i am going the wrong way here? I just want to add NPM to my container list.

cheers

https://preview.redd.it/m8xh39k3xh1c1.png?width=1155&format=png&auto=webp&s=0bee7104c89d2724f9da23fc280e57fc1351596b

13
 
 

Hi,
With Portainer on Debian. I'm trying to create a stack from the git repo and the "additional path" function is required for me to add a file for the compose file. The problem is, that it is impossible to describe the patch. I have a file on the file system under `/mnt/lvol-docker/AppData/netbox/docker-compose.override.yml`, but when deploying the stack I have an error message saying that the directory or file does not exist. Weirdly enough my described path is appended with `/data/compose/78/b47e85ab3f2261021adf99ae9de2e9692fd674c3/mnt/lvol-docker/AppData/netbox/docker-compose.override.yml` but such a directory not exist. If I create such a directory structure and drop my file, then it looks like another random directory with a different number/name.

https://preview.redd.it/6qywnapaxd1c1.png?width=1594&format=png&auto=webp&s=db4eb1197769db29ebab7f8a98b2abc27cddf47d

What I'm missing here? Or maybe something else is involved? Any hints?

Thank you.

14
 
 

Hello, im trying to run Ubuntu as full fledged Ubuntu, like installing ubuntu on portainer docker and use it like its own machine, but when i install ubuntu the container never starts any idea why? Not ubuntu but any os in general but if i run the command with docker it works fine

15
 
 

Probably a bit of a newb question (and I think I know the answer) but still.....

I want to add labels to my portainer container (to move it behind traefik and authelia) but I obviously can't rebuild from itself.

I also, for some reason, can't find the docker-compose otherwise i'd add them there.

Am I missing something or do I need to rebuild and hope?

16
 
 

Hi

I have a small home server running Docker managed by Portioner.

I am searching for instructions for how to setup and run Openproject.

17
 
 

I currently have one smb share marked as a volume in portainer but given that the password is in plain text inside of portainer this seems like a bad idea.

So what is the best way to add them into portainer and to make use of them? So far the SMB share I did add works for some containers and others get permission errors with the same puid and pgid as the ones that are working. I set umask to 002 also.

18
 
 

Hi all,

According to the most recent pricing FAQ (at the time of this post) it seems that 3 nodes remain "Free" as long as 3 nodes or fewer are in use. I do see that the license has an expiration date, so what happens once it expires? Is there a catch with the word "Free" in quotes?"

19
 
 

I have setup an ubuntu 22.04 server on my proxmox host.

Installed docker and portainer on it.

Get to the portainer webgui.

Install / deploy a docker in this example - nginx proxy manager

Docker container installs and webgui is accessible.

Run through setup etc, add a proxy host confirm reverse proxy works.

If I reboot the host it loses all settings, how do I make it actually retain settings? Or what am I doing wrong? Is there some sort of setting I am just not seeing or or something?

This is my first time attempting to use portainer for anything.

20
 
 

I am a novice with both docker and portainer. I have a container running pihole that I created with Portainer. Pihole console has the version at the bottom and it has a flashing docker tag indicating "update available".

How do I update the docker tag? Do I "recreate" the container?

21
 
 

Hey all,

Just setup Portainer today and I'm trying to use app templates to deploy new containers; I got Adguard working now I want to try Heimdall. When I use the app template I get an error, "no such image linuxserver/heimdall:latest" What can I do to resolve this? Have also tried, "lscr.io/linuxserver/heimdall:latest" to no avail.

22
 
 

I just installed portainer on my synology NAS that is running DSM 7. I downloaded and installed https://registry.hub.docker.com/r/portainer/portainer-ce/ I can get to portainer web GUI but when I log in it says “we could not connect your local environment to protainer. Please ensure your environment is correctly exposed.” Can anybody help?

23
 
 

I'm running Portainer & Docker on my Asustor NAS. I have all the apps/docker/portainer for my NAS installed on Volume1 of my NAS. Volume2 is where I store all my downloaded files including media. I've setup the following folders on my various volumes:

VOLUME1:

/Docker/Sonarr
/Docker/Portainer-CE

VOLUME:

/Media/TV_Shows
/Downloads/TV_Shows

When I try to set the following Volume (non-binding) in Portainer for the Sonarr container, I either get an error or the mapped locations don't appear in the Sonarr app.

https://preview.redd.it/jslrn2o1eovb1.png?width=2580&format=png&auto=webp&s=2f56356453bd95d5a9c57ebecfc7b642bbc5d4b1

I get an error, "Failure: invalid mode:/tv". The SonarVolume is what I created in the Volumes settings of Portainer. I was planning on creating a separate Volume that is easily identifiable for each of the containers I'm going to be using ie: Jackett, Sonarr, qbittorrent etc.

Hoping someone can assist this newbie. First time trying to get things up/running in a docker.

24
 
 

Guy's

I'm taking my first steps in docker&portainer.

I want to begin with pihole container as a stack and I'm using below example to create it. Volumes I create are not used, why? What do I need to do? I've created them earlier in "Volumes" tab. What else I need to do?

version: "3"
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "80:80/tcp"
    environment:
      # WEBPASSWORD: 'password'
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    restart: unless-stopped

25
 
 

Hoping for some help with a novice please.

My aim here is just to have somewhere I can easily reference where i'm storing the data as I add more and more stacks.

in Portainer (BE 2.19.1) I’ve created a volume called ‘my_data'. When I look at Portainer volumes it has in the mount point ‘/var/lib/docker/volumes/my_data/_data’. So thats where I've put some of the config files and other persistent data I want to use.

I want to use the ‘my_data’ Volume in multiple stacks (using docker compose) as the persistent data storage. I thought I’d be able to say in my compose:

volumes:

`- my_data/changedetection/datastore:/datastore`

However this gives the error:

failed to deploy a stack: service "changedetection" refers to undefined volume my_data/changedetection/datastore: invalid compose project

  1. Do I need to have one Volume for every stack so I would just say my_data:/datastore?
  2. Am I better off just ignoring Volumes and putting my persistent files somewhere like /data/my_data/ ?
  3. Am I asking the wrong questions :)

view more: next ›