Nextcloud publishes in the official repo only the base versions, but no images with pre-installed smbclient. However, this is required to connect SMB/CIFS storage as external storage.
This repo contains all apache docker images for nextcloud with installed smbclient.
The apache image contains a webserver and exposes port 80. To start the container type:
$ docker run -d -p 8080:80 ghcr.io/maximilian1001/docker-all-nextcloud-smb:apache
Now you can access Nextcloud at http://localhost:8080/ from your host system.
The tags of the original versions are adopted unchanged by nextcloud. Check the Nextcloud Docker Hub Documentation to learn more about the tags.
Use the apache
-tag, to get the latest version.
The original images are taken and the following commands (see Dockerfile) are executed to install smbclient:
apt-get update && apt-get install -y smbclient libsmbclient-dev && rm -rf /var/lib/apt/lists/*
pecl install smbclient
echo "extension=smbclient.so" >> /usr/local/etc/php/conf.d/nextcloud.ini