Comments (6)
I solved it.
Explaination
I took a look at the Dockerfile. You can see here that the Docker Ghost 1.0 now use /var/lib/ghost/content
and NOT /var/lib/ghost/
When I run it locally:
docker run -d \
--name ghostone \
-p 3001:2368 \
-v /Users/myusername/Documents/gstdatatest:/var/lib/ghost/content \
ghost:1.0.2-alpine
Docs
I will do a PR on the readme over here for this breaking change.
Please let me know if you guys can replicate :)
Cheers!
Pascal
from ghost.
I figured the problem is that I'm mapping a local drive from windows machine and tar somehow cannot update the access/read/edit (utime) time on the filesystem with tar.
For now I went on a simplyfied approach for the copying of the files in the entrypoint-script.
if [[ "$*" == node*current/index.js* ]] && ! ls $GHOST_CONTENT/* 1>/dev/null 2>&1; then
cp -R $GHOST_INSTALL/content.orig/* $GHOST_CONTENT/
chown -R node:node "$GHOST_CONTENT"
knex-migrator-migrate --init --mgpath "$GHOST_INSTALL/current"
fi
Cheers,
Mark
from ghost.
I think we should close this issue :)
from ghost.
I ran into the same issue.
Happens only, when I mount an empty folder to /var/lib/ghost
When I don't mount a volume it works.
I tried
sudo docker run -it --name ghost-blog-1.0 -v /var/www/ghost:/var/lib/ghost -p 2368:2368 ghost:1.0
I think this doesn't work, because the /content/ folder is created in the Dockerfile and not in the entrypoint-script. A workaournd could be to create a symlink maybe, eg. ln -s $SOME_DIR /var/lib/ghost
Also I took note that the variable $BASH_SOURCE in entrypoint-script seems to be unrecognized from within the container. It's not declared in the Dockerfile.
from ghost.
Thanks, @pascalandy that was a real stupid one! sigh
Although now I'm running into another issue, but I don't think that is related.
tar: themes/casper: Cannot utime: Operation not permitted
from ghost.
Ok 😄
A solution has been posted by @pascalandy -> if the issue persists comment and we can reopen or create a new issue.
from ghost.
Related Issues (20)
- Request for updated Docker Image. HOT 1
- ghost new version doesnt work HOT 1
- SQLITE_ERROR: no such column: author_id HOT 1
- ETA On ghost:5.54.2 docker container image in dockerhub? HOT 2
- Sign in and subscription buttons do not function HOT 6
- connection refused
- ghost:5.65-alpine: no matching manifest for linux/arm/v7 in the manifest list entries HOT 2
- find: /var/lib/ghost/content/themes/source: No such file or directory HOT 7
- Tag 5.75.1 cannot be pulled HOT 2
- Alpine images failing to build for arm32vN and arm64v8 HOT 13
- Updating from 5.0.1 -> 5-alpine seems to wipe the entire database? HOT 1
- Unable to post the blog on my website through a self hosted ghost page
- Missing ARM Tags for Docker Image 5.76.2 HOT 2
- "Cannot get /"
- Upgrade error
- mysql version 8.4 - ''mysql_native_password' is deprecated and will be removed in a future release HOT 1
- Ghost docker image build HOT 2
- missing architectures on 'full version' tags HOT 2
- Update ghost HOT 1
- Can't update site URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghost.