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

Unable to use commando deployed locally #12

Open
ostanislaw opened this issue Sep 9, 2022 · 1 comment
Open

Unable to use commando deployed locally #12

ostanislaw opened this issue Sep 9, 2022 · 1 comment

Comments

@ostanislaw
Copy link

Tried to deploy and use commando local instance according to dockermasters devops path.
It failed.

Part of the log with response, fixed only line endings

docker: Error response from daemon: error parsing HTTP 400 response body: invalid character 'c'     looking for beginning of value: "curl: (22) The requested URL returned error: 404 Not Found
Sending build context to Docker daemon  4.143kB\r\r
Step 1/5 : FROM alpine AS release
---> 9c6f07244728
Step 2/5 : CMD [\"/bin/bash\"]
---> Using cache
---> f8dbf69b173f
Step 3/5 : RUN apk --no-cache add bash curl
---> Running in 4b1ed815bcc4
cgroups: cgroup mountpoint does not exist: unknown

Please see full log below.

❯ docker compose build
[+] Building 1.3s (17/17) FINISHED
 => [internal] load build definition from Dockerfile                                                                     0.0s
 => => transferring dockerfile: 742B                                                                                     0.0s
 => [internal] load .dockerignore                                                                                        0.0s
 => => transferring context: 34B                                                                                         0.0s
 => [internal] load metadata for docker.io/library/golang:1.13-alpine                                                    1.2s
 => [internal] load metadata for docker.io/library/alpine:3.10                                                           0.0s
 => [auth] library/golang:pull token for registry-1.docker.io                                                            0.0s
 => [builder 1/4] FROM docker.io/library/golang:1.13-alpine@sha256:e74b83b94d499cb34c7edf55fbdff9d3cfabd238a35f9cb1b59d  0.0s
 => [docker 1/2] FROM docker.io/library/alpine:3.10                                                                      0.0s
 => [internal] load build context                                                                                        0.0s
 => => transferring context: 224B                                                                                        0.0s
 => CACHED [release 2/5] RUN apk --no-cache add curl bash                                                                0.0s
 => CACHED [builder 2/4] WORKDIR /builder                                                                                0.0s
 => CACHED [builder 3/4] COPY ./builder /builder                                                                         0.0s
 => CACHED [builder 4/4] RUN go build .                                                                                  0.0s
 => CACHED [release 3/5] COPY --from=builder /builder/builder /usr/local/bin/                                            0.0s
 => CACHED [docker 2/2] RUN apk --update add curl &&     mkdir /docker &&     curl -sSfL "https://download.docker.com/l  0.0s
 => CACHED [release 4/5] COPY --from=docker /usr/local/bin/docker /usr/local/bin/                                        0.0s
 => CACHED [release 5/5] COPY ./builder /builder                                                                         0.0s
 => exporting to image                                                                                                   0.0s
 => => exporting layers                                                                                                  0.0s
 => => writing image sha256:e3b3b9b0e399d3c03dc3828789d774a3dbd476ea84dcda09c59b9335af5ca55d                             0.0s
 => => naming to docker.io/library/commando_builder                                                                      0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

~/projects/OTHER/dockermasters/devops/commando/commando master ──────────────────────────────────────────────────────────────
❯ docker compose up -d
[+] Running 4/4
 ⠿ Network commando_default    Created                                                                                   0.0s
 ⠿ Container builder_registry  Started                                                                                   0.5s
 ⠿ Container builder_docker    Started                                                                                   0.5s
 ⠿ Container builder           Started    

~/projects/OTHER/dockermasters/devops/commando/commando master ──────────────────────────────────────────────────────────────
❯ docker run -it localhost:5050/tcpdump
Unable to find image 'localhost:5050/tcpdump:latest' locally
docker: Error response from daemon: error parsing HTTP 400 response body: invalid character 'c' looking for beginning of value: "curl: (22) The requested URL returned error: 404 Not Found\nSending build context to Docker daemon  4.143kB\r\r\nStep 1/5 : FROM alpine AS release\nlatest: Pulling from library/alpine\n213ec9aee27d: Pulling fs layer\n213ec9aee27d: Verifying Checksum\n213ec9aee27d: Download complete\n213ec9aee27d: Pull complete\nDigest: sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad\nStatus: Downloaded newer image for alpine:latest\n ---> 9c6f07244728\nStep 2/5 : CMD [\"/bin/bash\"]\n ---> Running in 70eaf3d765db\nRemoving intermediate container 70eaf3d765db\n ---> f8dbf69b173f\nStep 3/5 : RUN apk --no-cache add bash curl\n ---> Running in 17e16ef0e6a1\nRemoving intermediate container 17e16ef0e6a1\ncgroups: cgroup mountpoint does not exist: unknown\n".
See 'docker run --help'.

~/projects/OTHER/dockermasters/devops/commando/commando master ────────────────────────────────────────────────────── ✘ 125 4
❯ docker run -it localhost:5050/tcpdump
Unable to find image 'localhost:5050/tcpdump:latest' locally
docker: Error response from daemon: error parsing HTTP 400 response body: invalid character 'c' looking for beginning of value: "curl: (22) The requested URL returned error: 404 Not Found\nSending build context to Docker daemon  4.143kB\r\r\nStep 1/5 : FROM alpine AS release\n ---> 9c6f07244728\nStep 2/5 : CMD [\"/bin/bash\"]\n ---> Using cache\n ---> f8dbf69b173f\nStep 3/5 : RUN apk --no-cache add bash curl\n ---> Running in 4b1ed815bcc4\nRemoving intermediate container 4b1ed815bcc4\ncgroups: cgroup mountpoint does not exist: unknown\n".
See 'docker run --help'.

❯ docker --version
Docker version 20.10.17, build 100c701

~/projects/OTHER/dockermasters/devops/commando/commando master ──────────────────────────────────────────────────────────────
❯ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
@mpslanker
Copy link

I had this same issue. It looks like the docker-compose.yml uses docker:stable-dind as the image for the builder_docker. When I went digging though some docker open issues I found that certain images were exhibiting this behavior. Updating the docker-compose.yml to docker:dind fixed the issue for me.

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