Giter VIP home page Giter VIP logo

Comments (10)

kapalal avatar kapalal commented on August 22, 2024

Same issue here i've tried to change the permission on /kuard with a RUN chmod +x but i still get the permission denied error

from kuard.

jbeda avatar jbeda commented on August 22, 2024

What version of docker are you using? What is the OS/architecture?

from kuard.

jackiedo91 avatar jackiedo91 commented on August 22, 2024

I got the same issue on ubuntu 16
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/kuard\": permission denied".

docker version

Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:18 2017
OS/Arch: linux/amd64

Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:56 2017
OS/Arch: linux/amd64
Experimental: false

from kuard.

stmcginnis avatar stmcginnis commented on August 22, 2024

Sounds like you haven't added your user to the docker group to have non-root permissions. Make sure you've run:

sudo usermod -aG docker $USER

Then log out and back in again. You can test this is working right before attempting the examples from the book by running:

docker run hello-world

And making sure that is working right first.

from kuard.

jackiedo91 avatar jackiedo91 commented on August 22, 2024

@stmcginnis thank for your comment. I still got the error after applying your advice.
I have no issues when working with other images of my personal projects.

from kuard.

jbeda avatar jbeda commented on August 22, 2024

Hi all -- I updated the README with some steps that work for me -- https://github.com/kubernetes-up-and-running/kuard#manual-docker-build.

Can y'all try that out and let me know if it works? If it does I'll fix up the book for the next edition to make this more clear.

from kuard.

jackiedo91 avatar jackiedo91 commented on August 22, 2024

@jbeda Thank for your quickly support, after update the dockerfile with the new config, I got a new issue
=== Dockerfile ===
FROM alpine
COPY bin/1/amd64/kuard /kuard
ENTRYPOINT ["/kuard"]

=== Issue after run "docker build -t kuard-amd64:1 ." ===
Step 1/3 : FROM alpine latest: Pulling from library/alpine ff3a5c916c92: Pull complete Digest: sha256:7df6db5aa61ae9480f52f0b3a06a140ab98d427f86d8d5de0bedab9b8df6b1c0 Status: Downloaded newer image for alpine:latest ---> 3fd9065eaf02

Step 2/3 : COPY bin/1/amd64/kuard /kuard COPY failed: stat /var/lib/docker/tmp/docker-builder419379731/bin/1/amd64/kuard: no such file or directory

from kuard.

jbeda avatar jbeda commented on August 22, 2024

@jackiedo91 Did you run make from the base directory? That is the one that should be creating the binary that we are looking to put in there.

from kuard.

jeffreyt avatar jeffreyt commented on August 22, 2024

Just stumbled upon this thread but I'm also following along with the book and running the make file was the missing step for me. Thank you @jbeda !

from kuard.

jbeda avatar jbeda commented on August 22, 2024

Great! I'll close this now. Other folks -- please file a new issue or reopen if you think things are still broken.

from kuard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.