[Problème] Docker (cgroups)

Applications, problèmes de configuration réseau
dexter74
Daikyu
Messages : 53
Inscription : jeu. 28 oct. 2021, 20:24
Localisation : Annemasse

[Problème] Docker (cgroups)

Message par dexter74 »

Bonjour,

Je rencontre actuellement une erreur lors du lancement du conteneur Communityserver.
failed to deploy a stack: services.Communityserver Additional property cgroup is not allowed

Mon Stack:

Code : Tout sélectionner

################
version: '3.8' #
services:      #
################
#
#######################################################################
 Communityserver:
  # ----------------------------------------------------------------- #
  image: 'onlyoffice/communityserver'
  container_name: 'Communityserver'
  hostname: 'Communityserver'
  domainname: 'home'
  network_mode: 'bridge'
  restart: 'no'
  # ----------------------------------------------------------------- #
  privileged: true
  cgroup: 'host'
  # ----------------------------------------------------------------- #
  external_links:
   - 'MYSQL:mysql'
   - 'ControlPanel:controlpanel'
  # ----------------------------------------------------------------- #
  environment:
   MYSQL_SERVER_ROOT_PASSWORD: 'root'
   MYSQL_SERVER_DB_NAME: 'exemple'
   MYSQL_SERVER_HOST: 'mysql'
   MYSQL_SERVER_USER: 'admin'
   MYSQL_SERVER_PASS: 'admin'
   CONTROL_PANEL_PORT_80_TCP: '80'
   CONTROL_PANEL_PORT_80_TCP_ADDR: 'controlpanel'
  # ----------------------------------------------------------------- #
  volumes:
   - 'communityserver_data:/var/www/onlyoffice/Data'
   - 'communityserver_dbb:/var/lib/mysql'
   - 'communityserver_letsencrypt:/etc/letsencrypt'
   - 'communityserver_log:/var/log/onlyoffice'
   - '/sys/fs/cgroup:/sys/fs/cgroup:ro'
  # ----------------------------------------------------------------- #
  ports: [ '80:80', '443:443', '5222:5222' ]
#######################################################################
#
#
#######################################################################
volumes:
  communityserver_data: {}
  communityserver_dbb: {}
  communityserver_letsencrypt: {}
  communityserver_log: {}
#######################################################################

Sans le paramètre cgroup, le conteneur se plante:

Code : Tout sélectionner

System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeTelegram
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeSocketIO
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeThumb
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeFeed
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeIndex
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeJabber
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeMailAggregator
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeMailWatchdog
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeMailCleaner
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeMailImap
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeNotify
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeBackup
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeStorageMigrate
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeStorageEncryption
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeUrlShortener
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeThumbnailBuilder
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop onlyofficeAutoCleanUp
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop god
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl enable god
+ systemctl stop elasticsearch
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop redis-server
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop mysql
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop nginx
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl stop monoserveApiSystem.service
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl enable monoserveApiSystem.service
++ seq 1 1
+ for serverID in $(seq 1 ${APP_MONOSERVE_COUNT})

1
+ '[' 1 == 1 ']'
+ index=
+ systemctl stop monoserve.service
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl enable monoserve.service
+ '[' false == true ']'
+ systemctl enable onlyofficeRadicale.service
+ systemctl enable onlyofficeTelegram.service
+ systemctl enable onlyofficeSocketIO.service
+ systemctl enable onlyofficeThumb.service
+ systemctl enable onlyofficeFeed.service
+ systemctl enable onlyofficeIndex.service
+ systemctl enable onlyofficeJabber.service
+ systemctl enable onlyofficeMailAggregator.service
+ systemctl enable onlyofficeMailWatchdog.service
+ systemctl enable onlyofficeMailCleaner.service
+ systemctl enable onlyofficeMailImap.service
+ systemctl enable onlyofficeNotify.service
+ systemctl enable onlyofficeBackup.service
+ systemctl enable onlyofficeStorageMigrate.service
+ systemctl enable onlyofficeStorageEncryption.service
+ systemctl enable onlyofficeUrlShortener.service
+ systemctl enable onlyofficeThumbnailBuilder.service
+ systemctl enable onlyofficeAutoCleanUp.service
+ '[' SERVER == SERVER ']'
+ mv /app/config/nginx/prepare-onlyoffice /etc/nginx/sites-enabled/onlyoffice
+ service nginx stop
+ systemctl enable nginx.service
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
++ ps auxf

++ grep cron
++ grep -v grep
++ awk '{print $2}'
+ PID=

'
+ sed 's,\(\TimeoutStartSec=\).*,\1300,' -i /usr/lib/systemd/system/elasticsearch.service
+ systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate.
+ systemctl enable elasticsearch.service
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service → /usr/lib/systemd/system/elasticsearch.service.
+ '[' -n '' ']'
+ rm -dfr '/tmp/onlyoffice*'
+ rm -dfr '/var/run/onlyoffice/*'
+ rm -dfr '/var/cache/nginx/onlyoffice/*'
+ '[' false == true ']'
Note:

Code : Tout sélectionner

- Partition 1: FAT /boot
- Partition 2: LVM (/, /home, /Backup)
Répondre