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

已經不能用了嗎?拉不到docker images #11

Closed
changchichung opened this issue May 9, 2022 · 4 comments
Closed

已經不能用了嗎?拉不到docker images #11

changchichung opened this issue May 9, 2022 · 4 comments

Comments

@changchichung
Copy link

~/Downloads/mailbox-2.7.1$ make run_cmd
docker run -it --rm
--link mailbox-mariadb-prod:MARIADB
-v /home/chchang/Downloads/mailbox-2.7.1/workdir:/workdir
-e "mailbox_ses_key=xxx"
-e "mailbox_ses_token=xxx"
-e "mailbox_ses_sender=xxx"
-e "mailbox_ses_replyto=xxx"
-e "mailbox_web_site=xxx"
toomore/mailbox:cmd
Unable to find image 'toomore/mailbox:cmd' locally
docker: Error response from daemon: pull access denied for toomore/mailbox, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
make: [Makefile:63:run_cmd] 錯誤 125 (已忽略)

@toomore
Copy link
Owner

toomore commented May 9, 2022

Hi @changchichung, build docker image before executing the make run, thanks.

How to build the base docker images please follow the section of Build Docker Image in README.

@changchichung
Copy link
Author

@toomore I did !

chc@dc39:~/git$ git clone https://github.com/toomore/mailbox
正複製到 'mailbox'...
remote: Enumerating objects: 1229, done.
remote: Counting objects: 100% (158/158), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 1229 (delta 59), reused 124 (delta 31), pack-reused 1071
接收物件中: 100% (1229/1229), 352.03 KiB | 2.71 MiB/s, 完成.
處理 delta 中: 100% (696/696), 完成.
chc@dc39:~/git$ cd mailbox
chc@dc39:~/git/mailbox$ ls
build-base.sh  cmd                        dev-run-mariadb.sh  Dockerfile-min  go.sum   main.go           reader     utils
build-min.sh   dev-run-docker.sh          doc.go              goclean.sh      LICENSE  Makefile_example  README.md
campaign       dev-run-mariadb-client.sh  Dockerfile          go.mod          mails    mariadb.cnf       sql
chc@dc39:~/git/mailbox$ sh ./build-base.sh
3.13.5: Pulling from library/alpine
Digest: sha256:1d30d1ba3cb90962067e9b29491fbd56997979d54376f23f01448b5c5cd8b462
Status: Image is up to date for alpine:3.13.5
docker.io/library/alpine:3.13.5
1.16.3-alpine3.13: Pulling from library/golang
Digest: sha256:49c07aa83790aca732250c2258b5912659df31b6bfa2ab428661bc66833769e1
Status: Image is up to date for golang:1.16.3-alpine3.13
docker.io/library/golang:1.16.3-alpine3.13
Sending build context to Docker daemon  137.7kB
Step 1/18 : FROM golang:1.16.3-alpine3.13
 ---> 270727b8fd0f
Step 2/18 : MAINTAINER Toomore Chiang <toomore0929@gmail.com>
 ---> Using cache
 ---> 0e9c74c0f61f
Step 3/18 : WORKDIR /go/src/github.com/toomore/mailbox/
 ---> Using cache
 ---> d49c6897b5cd
Step 4/18 : ADD ./campaign ./campaign
 ---> Using cache
 ---> 3645c05a9d14
Step 5/18 : ADD ./cmd/campaign.go ./cmd/campaign.go
 ---> Using cache
 ---> c9c9e01f67f9
Step 6/18 : ADD ./cmd/gendoc.go ./cmd/gendoc.go
 ---> Using cache
 ---> 538d979ab65c
Step 7/18 : ADD ./cmd/root.go ./cmd/root.go
 ---> Using cache
 ---> e6afdc6f96fa
Step 8/18 : ADD ./cmd/send.go ./cmd/send.go
 ---> Using cache
 ---> 814c1862ee98
Step 9/18 : ADD ./cmd/server.go ./cmd/server.go
 ---> Using cache
 ---> bbc1ad9c1877
Step 10/18 : ADD ./cmd/user.go ./cmd/user.go
 ---> Using cache
 ---> d13068eefc94
Step 11/18 : ADD ./go.mod ./go.mod
 ---> Using cache
 ---> fc10ea4cc0cc
Step 12/18 : ADD ./go.sum ./go.sum
 ---> Using cache
 ---> a518cdb9de0e
Step 13/18 : ADD ./mails ./mails
 ---> Using cache
 ---> 8715e632dae6
Step 14/18 : ADD ./main.go ./main.go
 ---> Using cache
 ---> f2e7189cd142
Step 15/18 : ADD ./reader ./reader
 ---> Using cache
 ---> c63f36310c31
Step 16/18 : ADD ./utils ./utils
 ---> Using cache
 ---> 6e3018ffaa4e
Step 17/18 : VOLUME ["/go/bin"]
 ---> Using cache
 ---> 9f06b0a712dd
Step 18/18 : RUN     apk update && apk add gcc git musl-dev &&     rm -rf /var/cache/apk/* /var/lib/apk/* /etc/apk/cache/* &&     GO111MODULE=on go get -v ./...
 ---> Using cache
 ---> a2096ce912fe
Successfully built a2096ce912fe
Successfully tagged toomore/mailbox:base
chc@dc39:~/git/mailbox$ make run_cmd
make: *** 沒有規則可製作目標「run_cmd」。 停止。
chc@dc39:~/git/mailbox$ ls
build-base.sh  cmd                        dev-run-mariadb.sh  Dockerfile-min  go.sum   main.go           reader     utils
build-min.sh   dev-run-docker.sh          doc.go              goclean.sh      LICENSE  Makefile_example  README.md
campaign       dev-run-mariadb-client.sh  Dockerfile          go.mod          mails    mariadb.cnf       sql
chc@dc39:~/git/mailbox$ cp Makefile_example Makefile
chc@dc39:~/git/mailbox$ make run_cmd
docker run -it --rm                                                   \
				--link mailbox-mariadb-prod:MARIADB                        \
				-v /home/chc/git/mailbox/workdir:/workdir                           \
				-e "mailbox_ses_key=???"                                   \
				-e "mailbox_ses_token=???"                                 \
				-e "mailbox_ses_sender=???"                                \
				-e "mailbox_ses_replyto=???"                               \
				-e "mailbox_web_site=???"                                  \
				toomore/mailbox:cmd
Unable to find image 'toomore/mailbox:cmd' locally
docker: Error response from daemon: pull access denied for toomore/mailbox, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
make: [Makefile:63:run_cmd] 錯誤 125 (已忽略)
chc@dc39:~/git/mailbox$ 

my docker images

~/git/mailbox$ docker images|grep mailbox
toomore/mailbox                    base                a2096ce912fe   21 hours ago    726MB

@changchichung
Copy link
Author

there's no make start_mariadb section in README , so I miss that part.
now I can start the container , I will try more features , thanks !

@toomore
Copy link
Owner

toomore commented May 10, 2022

@changchichung oooh~ thank you for your feedback, I will revise the README!

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

2 participants