-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Running container image failed #1074
Comments
I am also having the same issue, when going to an older release everything works properly. |
I'm also having the same issue 😞 |
It is caused by a permission issue due to the log directory. Here's a work around.
diff --git a/Dockerfile b/Dockerfile
index 0dcda94c..3ef6f748 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -49,6 +49,8 @@ WORKDIR /home/spiderfoot
# Place database and configs outside installation directory
ENV SPIDERFOOT_DATA /var/lib/spiderfoot
+ENV SPIDERFOOT_LOGS /home/spiderfoot/log
+
# Run everything as one command so that only one layer is created
RUN apk --update --no-cache add python3 musl openssl libxslt tinyxml libxml2 jpeg zlib openjpeg \
&& addgroup spiderfoot \
@@ -58,6 +60,8 @@ RUN apk --update --no-cache add python3 musl openssl libxslt tinyxml libxml2 jpe
&& rm -rf /lib/apk/db \
&& rm -rf /root/.cache \
&& mkdir $SPIDERFOOT_DATA \
+ && mkdir $SPIDERFOOT_LOGS \
+ && chown spiderfoot:spiderfoot $SPIDERFOOT_LOGS \
&& chown spiderfoot:spiderfoot $SPIDERFOOT_DATA
COPY --from=build /opt/venv /opt/venv
|
Perfect, it work now. Thank you |
The above fix didn't work on my system, because the final line Moving |
Strange. The above fix should have worked for you. I've fixed this in #1182 by adding the |
Using a clean VM running Ubuntu 20.04.1 to run a Spiderfoot container. I have placed the user in the docker group to avoid having to use "sudo" with every command.
The latest version of Spiderfoot has been used by using the following command: "git clone https://github.com/smicallef/spiderfoot.git" and the image has been build using: "docker build -t spiderfoot . "
When i try to start a container using the image i just created i get the following error message:
What can be the cause of the problem?
The text was updated successfully, but these errors were encountered: