Coder Social home page Coder Social logo

Comments (6)

zoobab avatar zoobab commented on September 23, 2024

github.com/docker/libcontainer/namespaces does not exists anymore.

What is the fix?

from dockersh.

ehsanmostajeran avatar ehsanmostajeran commented on September 23, 2024

Hi, I also encounter similar problem.
Should it be changed to libcontainer under Runc repo.
How about other repos like github.com/docker/docker/pkg/units?

root@edge02:/home/oneadmin/dockersh# go get package code.google.com/p/gcfg: unable to detect version control system for code.google.com/ path package github.com/docker/docker/pkg/units imports github.com/docker/docker/pkg/units imports github.com/docker/docker/pkg/units: cannot find package "github.com/docker/docker/pkg/units" in any of: /root/.gvm/gos/go1.4.2/src/github.com/docker/docker/pkg/units (from $GOROOT) /root/.gvm/pkgsets/go1.4.2/global/src/github.com/docker/docker/pkg/units (from $GOPATH) package github.com/docker/docker/pkg/units imports github.com/docker/libcontainer/namespaces imports github.com/docker/libcontainer/namespaces imports github.com/docker/libcontainer/namespaces: cannot find package "github.com/docker/libcontainer/namespaces" in any of: /root/.gvm/gos/go1.4.2/src/github.com/docker/libcontainer/namespaces (from $GOROOT) /root/.gvm/pkgsets/go1.4.2/global/src/github.com/docker/libcontainer/namespaces (from $GOPATH)
When I try to build image from Dockerfile, I get this error.
Step 5 : RUN go get ---> Running in 3b0bf0c53414 package code.google.com/p/gcfg: unable to detect version control system for code.google.com/ path package github.com/docker/docker/pkg/units: cannot find package "github.com/docker/docker/pkg/units" in any of: /usr/local/go/src/github.com/docker/docker/pkg/units (from $GOROOT) /go/src/github.com/docker/docker/pkg/units (from $GOPATH) /go/src/app/_gopath/src/github.com/docker/docker/pkg/units /gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/docker/pkg/units package github.com/docker/libcontainer/namespaces: cannot find package "github.com/docker/libcontainer/namespaces" in any of: /usr/local/go/src/github.com/docker/libcontainer/namespaces (from $GOROOT) /go/src/github.com/docker/libcontainer/namespaces (from $GOPATH) /go/src/app/_gopath/src/github.com/docker/libcontainer/namespaces /gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/libcontainer/namespaces The command '/bin/sh -c go get' returned a non-zero code: 1

from dockersh.

caffeineaddiction avatar caffeineaddiction commented on September 23, 2024

I am seeing this issue as well. It looks like the problem is in nsenter_linux_amd64.go is this based on https://github.com/jpetazzo/nsenter ?

from dockersh.

dbech avatar dbech commented on September 23, 2024

I've noticed this also

[root@sir1 dockersh]# docker build . Sending build context to Docker daemon 290.3 kB Step 1 : FROM google/golang ---> 09ec5b5ecced Step 2 : ENV GOPATH $GOPATH:/gopath/src/github.com/docker/libcontainer/vendor ---> Using cache ---> e61c9ef5eefb Step 3 : WORKDIR /gopath/src/github.com/Yelp/dockersh ---> Using cache ---> cda1cdacf2f3 Step 4 : ADD . /gopath/src/github.com/Yelp/dockersh/ ---> Using cache ---> ecc03fc596c7 Step 5 : RUN go get ---> Running in 22c548099502 package github.com/docker/docker/pkg/units: cannot find package "github.com/docker/docker/pkg/units" in any of: /usr/local/go/src/github.com/docker/docker/pkg/units (from $GOROOT) /go/src/github.com/docker/docker/pkg/units (from $GOPATH) /go/src/app/_gopath/src/github.com/docker/docker/pkg/units /gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/docker/pkg/units package github.com/docker/libcontainer/namespaces: cannot find package "github.com/docker/libcontainer/namespaces" in any of: /usr/local/go/src/github.com/docker/libcontainer/namespaces (from $GOROOT) /go/src/github.com/docker/libcontainer/namespaces (from $GOPATH) /go/src/app/_gopath/src/github.com/docker/libcontainer/namespaces /gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/libcontainer/namespaces The command '/bin/sh -c go get' returned a non-zero code: 1

from dockersh.

triode3 avatar triode3 commented on September 23, 2024

It seems that libcontainier was moved. From githubs libcontainer page: PROJECT MOVED TO RUNC https://github.com/opencontainers/runc

Further, it seems we can not jut use the new RUNC directly, and there are changes that will need to be made: https://github.com/opencontainers/runc/tree/master/libcontainer/nsenter

So far, both building with docker or go are failing. Adding the unit files in as per d17077b resolved 1/2 of the issues, but since libcontainer is now runC, it is stuck.

from dockersh.

solarkennedy avatar solarkennedy commented on September 23, 2024

Sorry, but I'm closing this because we are archiving this project.

from dockersh.

Related Issues (19)

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.