Skip to content

v0.20.0 - "Error: config.toml not found in current directory or ancestors" when using docker build #2831

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

Open
alexanderjacuna opened this issue Mar 24, 2025 · 1 comment

Comments

@alexanderjacuna
Copy link

Bug Report

Environment

Debian 12.2.0-14
Kernel 6.6.44-production+truenas
Docker version: 27.1.1 (community)
Zola version: v0.20.0

Current Behavior

Instead of building the Zola site as I'd expect, the command errors out when looking for a config.toml file.

Step to reproduce

  1. Docker pulled the latest v0.20.0 version.
  2. Dock build, attempted with both intended user and root user.
root@truenas01[/mnt/pool1/docker/zola]# docker pull ghcr.io/getzola/zola:v0.20.0  
v0.20.0: Pulling from getzola/zola
688513194d7a: Pull complete 
bfb59b82a9b6: Pull complete 
efa9d1d5d3a2: Pull complete 
a62778643d56: Pull complete 
7c12895b777b: Pull complete 
3214acf345c0: Pull complete 
5664b15f108b: Pull complete 
0bab15eea81d: Pull complete 
4aa0ea1413d3: Pull complete 
da7816fa955e: Pull complete 
9aee425378d2: Pull complete 
701c983262e9: Pull complete 
221438ca359c: Pull complete 
6f971e93c4e2: Pull complete 
c83c31ce41af: Pull complete 
0cb5c07f8edd: Pull complete 
3b5eda438d7e: Pull complete 
Digest: sha256:362e902e9d1e49d3da6b5d80efa982e0696dbb4f211ef8180cfbf210b10356be
Status: Downloaded newer image for ghcr.io/getzola/zola:v0.20.0
ghcr.io/getzola/zola:v0.20.0
root@truenas01[/mnt/pool1/docker/zola]# docker run -u 3000:950 -v /mnt/pool1/docker/zola:/app --workdir /app ghcr.io/getzola/zola:v0.20.0 build
Building site...
Error: config.toml not found in current directory or ancestors, current_dir is /app
root@truenas01[/mnt/pool1/docker/zola]# docker run -u 0:0 -v /mnt/pool1/docker/zola:/app --workdir /app ghcr.io/getzola/zola:v0.20.0 build
Building site...
Error: config.toml not found in current directory or ancestors, current_dir is /app
@alexanderjacuna
Copy link
Author

Following the steps in the docker installation section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant