Portainer: tmpfs mounts not full describe in portainer

Created on 7 Sep 2017  ·  3Comments  ·  Source: portainer/portainer

Description
tmpfs mounts not full describe in portainer
and can't create mounts from portainer by tmpfs

image

Steps to reproduce the issue:

  1. create container with tmpfs mounts
    docker service create
    --name testservice
    --mount type=bind,source=/data/service/s0001/db,target=/var/lib/postgresql
    --mount type=tmpfs,target=/tmp
    --mount type=tmpfs,target=/var/tmp
    --mount type=tmpfs,target=/var/run
    --mount type=tmpfs,target=/run
    --network nginx-network
    --mode replicated
    --replicas 1
    docker-repo/testimage

  2. go to service details, look at mounts - tmpfs mounts not fully visualisable

Technical details:

  • Portainer version: 1.14.0
  • Target Docker version: 17.04.0-ce
  • Platform: Debian GNU/Linux 9.0 (stretch)
  • Command used to start Portainer:
docker service create \
    --name portainer \
    --publish 9000:9000 \
    --constraint 'node.role == manager' \
    --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
    --mount type=bind,src=/data/portainer,dst=/data \
    portainer/portainer \
    -H unix:///var/run/docker.sock
  • Target Swarm version (if applicable): 17.04.0-ce
  • Browser: Any
areservice-details kinenhancement

Most helpful comment

@deviantony, yeah, I've deleted my previous comment because I've also found that it's possible to do through ContainerCreate.HostConfig.Mounts, so I'll be looking into that.

All 3 comments

@G07cha Have a look at the TaskTemplate.ContainerSpec.Mounts field in the ServiceCreate operation: https://docs.docker.com/engine/api/v1.30/#operation/ServiceCreate

@deviantony, yeah, I've deleted my previous comment because I've also found that it's possible to do through ContainerCreate.HostConfig.Mounts, so I'll be looking into that.

Not sure if totally relevant to this issue, but I needed a tmpfs mount to link within portainer and have used the example from the docker site:

docker volume create --driver local \
    --opt type=tmpfs \
    --opt device=tmpfs \
    --opt o=size=100m,uid=1000 \
    foo

It's then selectable just as any volume.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yexingqi picture yexingqi  ·  3Comments

adi90x picture adi90x  ·  4Comments

xInsertx picture xInsertx  ·  4Comments

raushansingh629 picture raushansingh629  ·  4Comments

davask picture davask  ·  3Comments