Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smb support unavailable even from "full" image #1638

Closed
brainchild0 opened this issue Nov 19, 2021 · 54 comments
Closed

smb support unavailable even from "full" image #1638

brainchild0 opened this issue Nov 19, 2021 · 54 comments
Labels
bug examples Compose/Dockerfile/etc needs info Additional info needed to triage needs review Needs confirmation this is still happening or relevant

Comments

@brainchild0
Copy link

I am seeking to launch a Docker container on an embedded target, in particular a NAS, with inclusion of an SMB/CIFS client, for external storage.

I am new to Docker, but have done my best to find appropriate background resources to resolve a path for provisioning the container. Among these resources is the examples documentation.

My approach has been the following steps:

  1. On a desktop Linux system, of matching machine architecture, invoke the following commands:
$ docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache
$ docker save nextcloud -o nextcloud-full-apache.tar
  1. Import the image given in the resulting tarball, nextcloud-full-apache.tar, into the target system.
  2. Launch a container from the image.

Unfortunately, after establishing the Nextcloud instance on the target system, the following message is shown in the External storage page:

"smbclient" is not installed. Mounting of "SMB/CIFS", "SMB/CIFS using OC login" is not possible. Please ask your system administrator to install it.

This message is the same as had appeared when running from the image distributed through the Docker hub.

The expectation had been that the image built from the repository, described as a "full" image, would contain the SMB client components.

Perhaps I am misunderstanding some essential attribute of the Docker workflow. In any case, I am grateful for any support available, and I would try to assist providing any further details that may help resolve whether my observations reflect any issues in the repository for the Nextcloud Docker image.

@foxhoundv
Copy link

foxhoundv commented Jan 12, 2022

For now you need to access your containers command line, run apt update and then apt install smbclient. This is until they make it standard in the dockerfile.

@brainchild0
Copy link
Author

I suppose I could place the commands inside the Docker file, before building.

@foxhoundv
Copy link

I suppose I could place the commands inside the Docker file, before building.

True

@brainchild0
Copy link
Author

As a personal comment, I have moved toward an alternative deployment solution, at least for now.

However, if the problem is as simple as the Aptitude package missing from the original build, then it would seem trivial to fix, in case someone has the wish to try it and to test, and then to submit a pull request.

@foxhoundv
Copy link

foxhoundv commented Jan 20, 2022 via email

@brainchild0
Copy link
Author

What is the security concern?

@foxhoundv
Copy link

foxhoundv commented Jan 20, 2022 via email

@brainchild0
Copy link
Author

The documented behavior requires inclusion of the package. I don't imagine any security concern that would offset this benefit.

@foxhoundv
Copy link

foxhoundv commented Jan 20, 2022 via email

@brainchild0
Copy link
Author

brainchild0 commented Jan 20, 2022

Though another solution especially for those that are new, would be to have a separate docker-compose.yml file that points to a different Dockerfile that would include this.

Such is the current situation for this repository. Please review the documentation referenced in my original comments for this topic, and consider browsing the directories referenced in the target document.

@foxhoundv
Copy link

foxhoundv commented Jan 20, 2022

The expectation had been that the image built from the repository, described as a "full" image, would contain the SMB client components.

My understanding is that it is optional as an add-on. I am going to see if I can take this on as a side project. The only problem is that I only know ubuntu so even though I can do a pull request and fork it, I would only be able to try this with similar systems for the Dockerfile. If someone uses something I am not familiar with, it may be out of my capabilities.

@ckuethe
Copy link

ckuethe commented Jan 20, 2022

Would very much like to see smb support in a "full" image; it seems entirely reasonable for a "full" image to include all the dependencies for all the features so that the container is ready to go. I hate having to drop into a shell and do manual stuff every time I pull the latest image to keep up with my security patches.

@brainchild0
Copy link
Author

brainchild0 commented Jan 20, 2022

My understanding is that it is optional as an add-on.

You understand Samba support being "optional" with respect to what context? Please read the documentation. With respect to the broader Nextcloud project, Samba support may be optional, but with respect to the Full image, functionality is documented as a superset of the Samba image, which is documented to support Samba client access.

If someone uses something I am not familiar with, it may be out of my capabilities.

Docker containers have full isolation from any system details that vary by distribution. Any image targeting Linux for some processor architecture behaves entirely consistently irrespective of distribution.

@foxhoundv
Copy link

foxhoundv commented Jan 20, 2022

Please read the documentation.

Please do the same. If you navigate within the source files documentation, it points to the examples containing the full image. one such example is listed in the following path. .examples/dockerfiles/full/apache/Dockerfile , when you examine the file, it clearly lists installing smbclient on line 10. In the documentation you posted to, it states "full Dockerfile example." Which when you look in .examples/dockerfiles/full/apache/Dockerfile it has the smbclient portion listed.

You would then copy that Dockerfile and it would have the full install to include smbclient. If you go to .examples/dockerfiles/full and choose which one you need you should be fine.

@brainchild0
Copy link
Author

brainchild0 commented Jan 20, 2022

@foxhoundv: The observation I documented is that the Nextcloud instance deployed from the Full image fails to establish connections with a Samba service, despite being documented as including such support.

@foxhoundv
Copy link

@brainchild0 Please bear with me in all this, I really want to help if I can. So to make sure I understand you correctly, you took the Full Dockerfile example and used that to create your instance, and the Samba service didn't work?

@brainchild0
Copy link
Author

@foxhoundv: Yes.

@foxhoundv
Copy link

@brainchild0 Ok. I am going to try and spin one up and see what I get. Which version did you use: fpm-alpine, fp, or apache?

@brainchild0
Copy link
Author

@foxhoundv: I included the exact steps in the original comments.

@foxhoundv
Copy link

foxhoundv commented Jan 21, 2022

@brainchild0 What options / compose file did you use to run the container?

@brainchild0
Copy link
Author

@foxhoundv: I don't have a reproducible record of the procedure for provisioning the container from the image. I copied the image captured in the tarball to the target device, a Synology DiskStation running DSM, and launched the container. I used no Compose file (which is not supported by DSM), but did separately provision a MariaDB container and configure it against the Nextcloud image with container linking. I used specific environment settings to ensure that the proxy inside the container exposed the domain correctly and forwarded through the right secure versus insecure protocols. These steps worked the same for all Apache-based variations, and I would not expect them to affect Samba client access.

@foxhoundv
Copy link

@brainchild0 Ok, to replicate this I am going to use the docker-compose file located here, I am going to change some ports and see what comes up.

@brainchild0
Copy link
Author

@foxhoundv: It seems close enough to my environment that I hope you would be able to replicate the problem.

@foxhoundv
Copy link

foxhoundv commented Jan 21, 2022

@brainchild0 Okay, so what I have done is:

  1. On server, created directory called nextcloud-test
  2. In folder created 2 files: db.env from here and docker-compose.yml from here.
  3. docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache and I tagged the image as nextcloud-test:latest
  4. I changed the port listing in the docker-compose.yml file to match what I had available on the host as well as the mysql password in both files docker-compose.yml and db.env. Also I pointed the app image to nextcloud-test:latest.
  5. I installed the app External Storage Support because this is where you add the smb connections.
  6. I downloaded and enabled the app SMB Connection Test because this helps with testing things before making the connection.
  7. I input my smb settings and directory to test it which gave me these results: Test Image
  8. I opened the settings for the External Storage and input the information and it was successful. Here is that image: Successful Image. Be sure to choose external storage type SMB/CIFS.

@brainchild0
Copy link
Author

@foxhoundv: Based on your description of the method, I would have expected that you would discover the same problems as in my attempts. I am unable to find any particular reason for the difference, as the essential core of the test was similar enough to my deployment.

The best ideas I have at the moment are a problem with the packages that were downloaded when I generated my image, which has since resolved from newer versions populating the repositories, or some peculiar quirk of my environment, which is an embedded target not a vanilla server.

It would be helpful for me to try again from scratch, but as this path is no longer a personal priority, and as the work is quite tedious to deploy on the target environment, having only a primitive and cumbersome user interface, and no support for Compose, I may not actually get to it any time soon.

@martadinata666
Copy link

just some suggestion, try build with --no-cache and --progress=plain, no-cache will force docker to build ignoring local cached build, sometimes messed up build, and --progress will give more detail log when building. 🤔

@maltewhiite
Copy link

maltewhiite commented Jun 8, 2022

""smbclient" is not installed. Mounting of "SMB/CIFS", "SMB/CIFS using OC login" is not possible. Please ask your system administrator to install it."

This is ridiculous.
How am I supposed to install this inside the image?
Why is this not included in the nextcloud image?
Is there a variant that has this included?
Having to set up my own Dockerfile and learn how NextCloud works to that extent, and then setting up a build pipeline to keep it updated and then pushing it to our local registry and then using that instead is just a lot of work for one single package, that seems like it should be part of the official nextcloud image, or at least a variant thereof.

@brainchild0
Copy link
Author

brainchild0 commented Jun 8, 2022

You're not "supposed to install" anything "inside the image. The text you quoted is from a generic message generated by the software running inside the container, which is not specifically aware that it is in fact inside a container.

@maltewhiite
Copy link

maltewhiite commented Jun 8, 2022

You're not "supposed to install" anything "inside the image. The text you quoted is from a generic message generated by the software running inside the container, which is not specifically aware that it is in fact inside a container.

The container is running on the nextcloud image, as per my docker-compose.yml file

  app:
    image: <%=$docker_registry%>/nextcloud

So if I want to install "smbclient" which is required for "local" storage, then I need to somehow include something like "RUN apt install smbclient" in the nextcloud dockerfile, no?

Which I guess means I have to make my own Dockerfile a la

FROM nextcloud
RUN apt install smbclient
# A lot of other stuff, like remaking the entrypoint. I don't know enough about Docker to know what would be needed

Then I'd also need to make a CI pipeline that builds this image from the Dockerfile and uploads it to our Docker registry, so the docker-compose.yml file can use that image which now has "smbclient". And set up a scheduler so that image gets frequently rebuilt with new updates from nextcloud.

That is just a lot to me. For just one package, which seems to be absolutely necessary for a very important functionality like external storage.

Is there a "Full" nextcloud image somewhere I can use which has this smbclient package?

@brainchild0
Copy link
Author

@foxhoundv has used the image without finding the same problem. Have you actually deployed the image yet?

@maltewhiite
Copy link

maltewhiite commented Jun 8, 2022

@foxhoundv has used the image without finding the same problem. Have you actually deployed the image yet?

image

Yeah, I have it running. Shows that warning.

@martadinata666 Rather he/she talking about a hassle to build an image because missing single package.

Yeah, my request is for the smbclient to be included in the nextcloud image. Or for an official "full nextcloud" image to be made available, which has external storage enabled by default and has smbclient installed.

@martadinata666
Copy link

martadinata666 commented Jun 8, 2022

@foxhoundv has used the image without finding the same problem. Have you actually deployed the image yet?

image

Yeah, I have it running. Shows that warning.

@martadinata666 Rather he/she talking about a hassle to build an image because missing single package.

Yeah, my request is for the smbclient to be included in the nextcloud image. Or for an official "full nextcloud" image to be made available, which has external storage enabled by default and has smbclient installed.

afaik for smb it also need the php module, only install the smbclient wont do.
My old dockerfile.

FROM nextcloud:24.0.1 
# Build and install the module
RUN apt update && \
         apt install libsmbclient-dev && \
         pecl install smbclient && \
         echo "extension=smbclient.so" > /usr/local/etc/php/conf.d/docker-php-ext-smbclient.ini && \
         apt remove libsmbclient-dev && apt clean && rm -rf /var/lib/apt/lists/*
# Install the smbclient binary
RUN apt update && \
        apt install -y procps smbclient && \
        apt clean && \
        rm -rf /var/lib/apt/lists/*


@foxhoundv
Copy link

@maltewhiite If you are doing a build from docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache, it will pull from that Dockerfile. It then will run smbclient on line 10 as you can see below.

FROM nextcloud:apache

RUN set -ex;

apt-get update;
apt-get install -y --no-install-recommends
ffmpeg
libmagickcore-6.q16-6-extra
procps
smbclient \

@martadinata666
Copy link

@maltewhiite If you are doing a build from docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache, it will pull from that Dockerfile. It then will run smbclient on line 10 as you can see below.

FROM nextcloud:apache
RUN set -ex;

apt-get update;
apt-get install -y --no-install-recommends
ffmpeg
libmagickcore-6.q16-6-extra
procps
smbclient \

yah true if it full/Dockerfile, we dunno which dockerfile he/she used if he/she follow smb/Dockerfile then it still missing bits.

@foxhoundv
Copy link

@maltewhiite If you are doing a build from docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache, it will pull from that Dockerfile. It then will run smbclient on line 10 as you can see below.

FROM nextcloud:apache
RUN set -ex;
apt-get update;
apt-get install -y --no-install-recommends
ffmpeg
libmagickcore-6.q16-6-extra
procps
smbclient \

yah true if it full/Dockerfile, we dunno which dockerfile he/she used if he/she follow smb/Dockerfile then it still missing bits.

Correct, however when @maltewhiite was informed of the procedure I used, the reference was to the full/Dockerfile.

@maltewhiite Can you confirm that you did use the full/Dockerfile?

@martadinata666
Copy link

martadinata666 commented Jun 8, 2022

@maltewhiite If you are doing a build from docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache, it will pull from that Dockerfile. It then will run smbclient on line 10 as you can see below.

FROM nextcloud:apache
RUN set -ex;
apt-get update;
apt-get install -y --no-install-recommends
ffmpeg
libmagickcore-6.q16-6-extra
procps
smbclient \

yah true if it full/Dockerfile, we dunno which dockerfile he/she used if he/she follow smb/Dockerfile then it still missing bits.

Correct, however when @maltewhiite was informed of the procedure I used, the reference was to the full/Dockerfile.

@maltewhiite Can you confirm that you did use the full/Dockerfile?

referencing this #1638 (comment) i think he/she go smb/Dockerfile route or just my assumption. cmiiw

@foxhoundv
Copy link

@maltewhiite If you are doing a build from docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache, it will pull from that Dockerfile. It then will run smbclient on line 10 as you can see below.

FROM nextcloud:apache
RUN set -ex;
apt-get update;
apt-get install -y --no-install-recommends
ffmpeg
libmagickcore-6.q16-6-extra
procps
smbclient \

yah true if it full/Dockerfile, we dunno which dockerfile he/she used if he/she follow smb/Dockerfile then it still missing bits.

Correct, however when @maltewhiite was informed of the procedure I used, the reference was to the full/Dockerfile.
@maltewhiite Can you confirm that you did use the full/Dockerfile?

referencing this #1638 (comment) i think he/she go smb/Dockerfile route or just my assumption. cmiiw

In the comment referenced, at the bottom, @maltewhiite asked...

Is there a "Full" nextcloud image somewhere I can use which has this smbclient package?

to which @brainchild0 responded...

@foxhoundv has used the image without finding the same problem. Have you actually deployed the image yet?

to which @maltewhiite responded...

Yeah, I have it running.

@foxhoundv
Copy link

foxhoundv commented Jun 8, 2022

@maltewhiite If you would like help going through the process I described in my referenced process, I would be more than happy to help. To also clarify any misunderstanding, yes the full Dockerfile has smbclient included.

For anyone else interested in this thread, there is a Nextcloud All-In-One in the works that has smbclient included as well as a bunch of other goodies. Great for SMB's. Check it out as it may be a good alternative and fit.

@maltewhiite
Copy link

maltewhiite commented Jun 9, 2022

Thank you for taking the time ❤️ Much appreciated. Sorry for my rude tone, I was quite tilted at the time.

@foxhoundv asked:

Can you confirm that you did use the full/Dockerfile?

I don't think so. I followed the examples. How does one use the full/Dockerfile in compose?

I am still relatively new to Docker. This is my first time trying compose. It is also my first time doing anything with NextCloud.

We are in the process of migrating a very very old nextcloud instance that is no longer under "Infrastructure as Code" control.

My team has considered deciding to drop using external storage, since it seemed too difficult. We consider just telling the users that they must migrate their own data. Not ideal, but.... At least we'd not have old data that no one uses from people who are no longer hired.

Also, the storage type is "Local". On the old host, we had a datastorage mount. We just used that for datadir and then used external storage with "local". We were thinking of just mounting this disk from our DS into the new nextcloud docker host, and then bind mounting that into the container, and then using external storage to access it and set LDAP group restrictions. This might be totally over-engineered and dumb. Let me know if it is.

version: '3'

volumes:
  nextcloud:
  db:
  apps:
  config:
  data:

services:
  db:
    image: <%=$docker_registry%>/mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql:z
    environment:
      - MYSQL_ROOT_PASSWORD=<%=$mysql_root_password%>
      - MYSQL_PASSWORD=<%=$mysql_password%>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  redis:
    image: <%=$docker_registry%>/redis:alpine
    restart: always

  app:
    image: <%=$docker_registry%>/nextcloud
    restart: always
    ports:
      - <%=$ip%>:<%=$nextcloud_port%>:80
    links:
      - db
    volumes:
      # Main folder, needed for updating
      - nextcloud:/var/www/html:z
      # installed / modified apps
      - apps:/var/www/html/custom_apps:z
      # local configuration
      - config:/var/www/html/config:z
      # the actual data of Nextcloud
      - data:/var/www/html/data:z
      # Certificates
      - /etc/pki/ca-trust/source/anchors/ca.crt:/etc/ssl/certs/ca.pem:z
      - /etc/pki/ca-trust/source/anchors/ca.crt:/etc/ssl/certs/ca-certificates.crt:z
    environment:
      - MYSQL_PASSWORD=<%=$mysql_password%>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - REDIS_HOST=redis
    depends_on:
      - db
      - redis

  cron:
    image: <%=$docker_registry%>/nextcloud:apache
    restart: always
    volumes:
      - nextcloud:/var/www/html:z
      - apps:/var/www/html/custom_apps:z
      - config:/var/www/html/config:z
      - data:/var/www/html/data:z
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis
    environment:
      - REDIS_HOST=redis

I attached a screenshot of our nextcloud running the above docker-compose here:

(I censored the names, since they're classified)

Quite strange that one mount is green. The red ones provide no error message if I press the red error icon. It only says "Click to recheck the configuration" so I have no idea what is wrong. I assume the problem is the error message "smbclient" is not installed. Mounting of "SMB/CIFS", "SMB/CIFS using OC login" is not possible. Please ask your system administrator to install it..

NextCloudExternalStorageSetUp

We are in an airgapped environment, so it would be quite a hassle to make our own image. That would involve getting the package through several artifactories via DMZ etc. And then making our own Dockerfile and then pushing it to our docker registry via a CI pipeline. And then schedule that regularly so we get frequent security updates. And security scanning the container as a job in the CI.

That is just a lot of work, for one little extra "smbclient" package.

@martadinata666
Copy link

if you already use docker compose, it made things easier.
Place the Dockerfile in the same path as docker-compose.yml

and add a build to your compose

...
  app:
    image: <%=$docker_registry%>/nextcloud
    build:
       context: .
       dockerfile: Dockerfile
    restart: always
    ports:
      - <%=$ip%>:<%=$nextcloud_port%>:80
    links:
      - db
    volumes:
      # Main folder, needed for updating
      - nextcloud:/var/www/html:z
      # installed / modified apps
      - apps:/var/www/html/custom_apps:z
      # local configuration
      - config:/var/www/html/config:z
      # the actual data of Nextcloud
      - data:/var/www/html/data:z
      # Certificates
      - /etc/pki/ca-trust/source/anchors/ca.crt:/etc/ssl/certs/ca.pem:z
      - /etc/pki/ca-trust/source/anchors/ca.crt:/etc/ssl/certs/ca-certificates.crt:z
    environment:
      - MYSQL_PASSWORD=<%=$mysql_password%>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - REDIS_HOST=redis
    depends_on:
      - db
      - redis
...

@foxhoundv
Copy link

@martadinata666 Correct me if I am wrong... but won't this then pull an image AND build an image? Seems a little bit much to do since you only need one image to create the container from.

In my example I built the image from the linked url Dockerfile, and pointed the docker-compose.yml to the one built.

@foxhoundv
Copy link

foxhoundv commented Jun 9, 2022

@maltewhiite If your pulling an image from your own registry, why not rebuild that registry's image for nextcloud using the full/Dockerfile? Do you control that registry's access for the image?

@martadinata666
Copy link

@foxhoundv well, docker compose or docker build, either way still pull the base image nextcloud:apache and create another one. It just how the user want to build it.

via the compose it build image from Dockerfile and tag with <%=$docker_registry%>/nextcloud

@foxhoundv
Copy link

foxhoundv commented Jun 9, 2022

@foxhoundv well, docker compose or docker build, either way still pull the base image nextcloud:apache and create another one. It just how the user want to build it.

via the compose it build image from Dockerfile and tag with <%=$docker_registry%>/nextcloud

Okay, thank you for that information.

I just hope it still has certain setup features that may be needed. Seeing how the image maltewhiite might be using may be customized already. I am assuming this because we aren't shown the registry.

@maltewhiite
Copy link

@maltewhiite If your pulling an image from your own registry, why not rebuild that registry's image for nextcloud using the full/Dockerfile? Do you control that registry's access for the image?

It it just a mirror of docker hub basically.

@foxhoundv
Copy link

@maltewhiite Did you get it figured out?

@maltewhiite
Copy link

@foxhoundv Thanks for the follow-up, but no. We simply decided to not use the external storage feature.

@foxhoundv
Copy link

foxhoundv commented Aug 4, 2022

@maltewhiite Hey, I know this post is getting kind of stale however I do want to leave a follow-up in regards to this. There is an image that is fairly new (started in 01-13-22 with v0.1.0). I started using it about the end of May but was having issues with certain setup options which we got resolved. I have since had no issues and it has been running wonderfully since the end of June. It is called Nextcloud AIO. They are currently on v1.7.0. Not only can you easily setup this instance but it does setup for several other features:

  • High performance backend for Nextcloud Files
  • High performance backend for Nextcloud Talk
  • Backup solution
  • OnlyOffice

And has smbclient already included and runs smoothly. I highly recommend this, at least check it out as a viable option.

@maltewhiite
Copy link

@foxhoundv woah that looks awesome. Thanks for making me aware. I'll make a note of it in our internal nextcloud docs

@JeroenAdam
Copy link

I can confirm uploading files to a SMB-share works again since v26.0.2

@joshtrichards joshtrichards added examples Compose/Dockerfile/etc bug labels Oct 24, 2023
@joshtrichards joshtrichards mentioned this issue Jan 12, 2024
7 tasks
@0x1def
Copy link

0x1def commented Feb 26, 2024

Ones, who don't want to use AIO, are welcomed to try our image.
We have been using it for a while internally and today we published it to the public registries.

Thanks for the great product, BTW.

@joshtrichards joshtrichards added the needs review Needs confirmation this is still happening or relevant label Jun 20, 2024
@joshtrichards
Copy link
Member

It seems there are two situations arising here:

@joshtrichards joshtrichards added the needs info Additional info needed to triage label Jun 21, 2024
@joshtrichards
Copy link
Member

@brainchild0 I believe the reason you didn't get what you expected, but @foxhoundv did is because you did this:

$ docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache
$ docker save nextcloud -o nextcloud-full-apache.tar

That build command would have created an untagged image. You'd either have to tag it or refer to it by image id. Your second command just saved the nextcloud:latest image into your tar file. It didn't save the contents of the image you'd just built.

Whereas @foxhoundv tagged their image:

  1. docker build https://github.com/nextcloud/docker.git#:.examples/dockerfiles/full/apache and I tagged the image as nextcloud-test:latest

If you'd wanted to save the one you just built, you'd either tag it using -t when running docker build (or afterwards in a few other ways). Or you could specify the docker image id directly if you don't want to bother tagging.

In any case, this is WAY outside the scope of what we should be discussing here. Since this isn't a bug in the image or examples, I'm going to close this out.

Follow-up that is general Docker discussion or troubleshooting (i.e. anything that isn't a likely bug in the image), should be moved to the Help Forum: https://help.nextcloud.com

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug examples Compose/Dockerfile/etc needs info Additional info needed to triage needs review Needs confirmation this is still happening or relevant
Projects
None yet
Development

No branches or pull requests

8 participants