20210815 QNAP TS-431P3-2G
Installed App Container Station
- Accepted default ‘Container’ folder & location ‘to store images & containers’
- Warnings on startup:
- LXC containers no longer supported after 20211231
- The current page size of the system is 32K. Ensure that third-party applications are compatible with the current page size before installing the application. For details, see the FAQ:
- QNAP updated the system page size from 4K to 32K for better performance and user experience on the following 32-bit ARM devices. This change in the compute environment could limit the container’s access to memory. To avoid container segmentation faults, verify third-party container page size compatibility before installation
SSH access:
- NAS: Control Panel -> Network & File Services: Allow SSH Connection with defaults
- Installed Putty on desktop
SSH’d in ok
- ‘Docker version’ = 20.10.3
]$ ls /share
CACHEDEV1_DATA/ Container@ Public@
CACHEDEV2_DATA/ Download@ Seagate Expansion Drive@
CACHEDEV3_DATA/ MainShare@ external/
Companies@ Multimedia@ homes@
$ ls -l /share
drwxrwxrwx 35 admin administ 4096 Aug 15 13:32 CACHEDEV1_DATA/
drwxrwxrwx 4 admin administ 4096 Aug 14 11:35 CACHEDEV2_DATA/
drwxrwxrwx 4 admin administ 4096 Aug 15 13:08 CACHEDEV3_DATA/
lrwxrwxrwx 1 admin administ 24 Aug 15 13:30 Companies -> CACHEDEV2_ DATA/Companies/
lrwxrwxrwx 1 admin administ 24 Aug 15 13:30 Container -> CACHEDEV1_ DATA/Container/
lrwxrwxrwx 1 admin administ 23 Aug 15 13:30 Download -> CACHEDEV1_D ATA/Download/
lrwxrwxrwx 1 admin administ 24 Aug 15 13:30 MainShare -> CACHEDEV3_ DATA/MainShare/
lrwxrwxrwx 1 admin administ 25 Aug 15 13:30 Multimedia -> CACHEDEV1 _DATA/Multimedia/
lrwxrwxrwx 1 admin administ 21 Aug 15 13:30 Public -> CACHEDEV1_DAT A/Public/
lrwxrwxrwx 1 admin administ 18 Aug 15 13:30 Seagate Expansion Drive -> external/DEV3302_1/
drwxr-xr-x 3 admin administ 60 Aug 14 10:29 external/
lrwxrwxrwx 1 admin administ 20 Aug 15 13:30 homes -> CACHEDEV1_DATA
Portainer install:
- Added new Share for Container/Docker persistent data ‘Docker’ on SysDefault volume
- Added child folder ‘portanier’
- Gave myself RW access to share ‘Homes’
- Created Docker Compose YAML file ‘portainer.yml’ in my home share
version: '3'
services:
portainer:
container_name: Portainer
image: portainer/portainer
restart: always
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /share/Docker/portainer:/data
Putty:
$ docker-compose -f portainer.yml up -d
Creating network "myusername_default" with the default driver
Pulling portainer (portainer/portainer:)...
latest: Pulling from portainer/portainer
94cfa856b2b1: Pull complete
49d59ee0881a: Pull complete
1101392a3cc7: Pull complete
Digest: sha256:fb45b43738646048a0a0cc74fcee2865b69efde857e710126084ee5de9be0f3f
Status: Downloaded newer image for portainer/portainer:latest
Creating Portainer ... done
Container Station, started Portainer, and yes can login in at port 9000 but..
- Container station shows Application name as my username
- Trying to stop Portainer in Container Station says
- Failed to stop application, Application not found myusername
- Stopped Portmainer from its own management window
- Now in Container station trying to start it again I get: Failed to start application, Application not found myusername
- Same issue if try to remove the container, application username not found
So removed it via:
$ docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Deleted Containers:
3696059f391cd7bdd9f1ac257c635e3098bd8207c95920f6e4e59b6b0d23642e
Deleted Networks:
myusername_default
Total reclaimed space: 0B
In Container Station: Did Create -> Create and pasted in above YAML, also set ‘Application name’ field to ‘Portainer’
- yes it created a named application which I was able to start, but no connection at port 9000
Cleanup again:
$ docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Deleted Containers:
70e4819196ef4113105c157d094243d4650df2b2962aa9402f00971628094a28
Deleted Networks:
portainer_default
Total reclaimed space: 0B
sudo rm -rf /share/Docker/portainer
Ok so the project name default to the working directory so:docket-compose from so..
- moved portainer.yml to /share/Docker/Portmainer
- cd to /share/Docker/Portmainer
- Ran docker-compose
docker-compose -f portainer.yml up -d
]$ docker-compose -f portainer.yml up -d
Creating network "portainer_default" with the default driver
Creating Portainer ... done