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

Image not found #35

Closed
marksugar opened this issue Feb 14, 2019 · 3 comments
Closed

Image not found #35

marksugar opened this issue Feb 14, 2019 · 3 comments
Labels
locked This pull request is closed

Comments

@marksugar
Copy link

$dfimage marksugar/redis:5.0.0

Traceback (most recent call last):
File "/root/entrypoint.py", line 56, in
main = MainObj()
File "/root/entrypoint.py", line 16, in init
self._get_image(argv[-1])
File "/root/entrypoint.py", line 32, in _get_image
raise ImageNotFound("Image {} not found\n".format(img_hash))
main.ImageNotFound: Image marksugar/redis:5.0.0 not found

@LanikSJ
Copy link
Owner

LanikSJ commented Feb 18, 2019

Use docker images to determine an image ID. Then

○ → dfimage fca0739e7e0b
Unable to find image 'laniksj/dfimage:latest' locally
latest: Pulling from laniksj/dfimage
6c40cc604d8e: Pull complete
3f41d2f02cd5: Pull complete
dbbdf0be3d8f: Pull complete
Digest: sha256:07906210e42c7353296a5191bed7ba1c21b00bc76391138917e5bbe2ab9157eb
Status: Downloaded newer image for laniksj/dfimage:latest
FROM marksugar/redis:5.0.0
ADD file:25c10b1d1b41d46a1827ad0b0d2389c24df6d31430005ff4e9a2d84ea23ebd42 in /
CMD ["/bin/sh"]
MAINTAINER www.linuxea.com mark
ENV RS_VSON=5.0.0
ENV RS_USER=redis
ENV RS_VSON_URL=http://download.redis.io/releases/redis-5.0.0.tar.gz BATADIR=/usr/local/redis DATADIR=/data/redis DATALOG=/data/logs DATACIG=/etc/redis
RUN /bin/sh -c buildADD='gcc make musl-dev linux-headers tar curl' 	\
    && set -x 	\
    && addgroup -g 401 -S ${RS_USER} \
    && adduser -u 401 -S -H -s /sbin/nologin -g 'redis' -G ${RS_USER} ${RS_USER} 	\
    && mkdir -p ${BATADIR} ${DATADIR} ${DATALOG} ${DATACIG} ${DATAOPT}	\
    && chown ${RS_USER}.${RS_USER} ${DATADIR} 	\
    && apk add --no-cache --virtual .build-deps ${buildADD} 	\
    && curl -Lks4  ${RS_VSON_URL}|tar xz -C ${BATADIR} --strip-components=1 	\
    && cd ${BATADIR} \
    && make \
    && make install 	\
    && curl -Lk https://raw.githubusercontent.com/LinuxEA-Mark/docker-alpine-Redis/master/5.0/redis.conf -o /${DATACIG}/redis.conf 	\
    && curl -Lks https://raw.githubusercontent.com/LinuxEA-Mark/docker-alpine-Redis/master/5.0/Initialization-start.sh -o /Initialization.sh 	\
    && apk del .build-deps 	\
    && rm -rf /var/cache/apk/* ${BATADIR}     \
    && export MAXMEMORY_SIZE=`echo "expr $(($(awk '/MemTotal/{print $2}' /proc/meminfo)*88/102400))"|awk '{print $2}'` 	\
    && chmod +x /Initialization.sh
EXPOSE 26379/tcp 6379/tcp
ENTRYPOINT ["/Initialization.sh"]

@LanikSJ LanikSJ closed this as completed Feb 18, 2019
@marksugar
Copy link
Author

@LanikSJ thanks

@lock
Copy link

lock bot commented Jun 15, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the locked This pull request is closed label Jun 15, 2019
@lock lock bot locked and limited conversation to collaborators Jun 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked This pull request is closed
Projects
None yet
Development

No branches or pull requests

2 participants