user824624
user824624

Reputation: 8068

can't build the docker image with error saying image not found

I am trying to build a docker image from public repository. Actually I had built it successfully before, today I wanted to update the image to latest one, so I removed the older image, and tried to pull the new image.

However, when I tried

$ docker pull dockerfile/ghost
Pulling repository dockerfile/ghost
FATA[0001] Error: image dockerfile/ghost:latest not found

I can't really understand why it doesn't work, it is supposed to be working.

Upvotes: 3

Views: 12007

Answers (3)

Chandan Nayak
Chandan Nayak

Reputation: 10887

This is what you need
Use docker pull ghost.

Upvotes: 3

Vic
Vic

Reputation: 2055

Replace

docker pull dockerfile/ubuntu

with

docker pull ubuntu

Similarly in Dockerfile for base image pull, replace

FROM dockerfile/ubuntu

with

FROM ubuntu

Change ubuntu to any other image name you require

Upvotes: 0

user824624
user824624

Reputation: 8068

Thanks, @Chandan. I followed his advice to find the problem through

docker logs container_id

Firstly, the error is

ERROR: casper cannot be activated because it is not currently installed.

so I downloaded the casper and put it into the theme folder.

Secondly, the error is

Migrations: Up to date at version 003 Ghost is running in development... Listening on 127.0.0.1:2368 Url configured as: http://localhost:2368

because the ghost server is running in the development mode.so I make it as production mode.

Thirdly, by making it into the production mode, there is a error

ERROR: Unable to access Ghost's content path:

so I followed the instruction to edit /path/to/ghost/blog/config.js and copy the paths section from development to production. Then restart the container.

docker restart some-ghost

at last it works

Upvotes: 0

Related Questions