SMB Deployment Woes

Hello Everyone,

I am having some issues with creating a custom image using the SMB Apache docker file. Essentially, all I want to do is run Nextcloud with the SMB package pre-installed.

Here is the docker file that I loaded into Portainer:
* List item

FROM nextcloud:apache

RUN apt-get update && apt-get install -y procps smbclient && rm -rf /var/lib/apt/lists/*

Here is my docker compose file:

version: '2'

    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
      - /volume1/docker/storage/nextcloud/db:/var/lib/mysql
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
    image: nextcloud-smb(my custom image):latest
    restart: always
      - 8081:80
      - db
      - /volume1/docker/storage/nextcloud/data:/var/www/html
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

When I run my “nextcloud-smb” container I receive the following error message:

=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message

(13)Permission denied: AH00072: make_sock: could not bind to address

no listening sockets available, shutting down

AH00015: Unable to open logs

The device that is hosting my docker instance is my Synology DS1621+ device so I am using Portainer off of that. For the record, Nextcloud works just fine using the standard base mage (nextcloud:latest).

I also tried a different approach, where I added an entry point to my docker compose file as recommended by one user from Reddit:
* List item

entrypoint: ["/bin/bash", "-c" , "apt update && apt install smbclient libsmbclient-dev -y && pecl install smbclient && docker-php-ext-enable smbclient && / apache2-foreground"]

But that does not work as well, as I receive a message denied error.

Thanks for the help everyone.