skip to Main Content

I was following along with an article and I am pretty confused on how to convert this https://github.com/jpetazzo/nsenter to a docker container or image?? I am pretty confused and the article assumed as if I knew how to do it?

2

Answers


  1. You could download the Dockerfile and then run docker build . in the directory that you save the Dockerfile to. That will create a Docker image, which you can build a container based off of.

    Login or Signup to reply.
  2. Here is two possible ways:

    1. Build image locally:
    git clone [email protected]:jpetazzo/nsenter.git
    cd nsenter
    docker build -t nsenter_image .
    docker run --name nsenter_container --rm nsenter_image cat /nsenter > ./nsenter && chmod +x ./nsenter
    ls -l nsenter
    
    1. Use docker HUB image:
    mkdir nsenter
    cd nsenter
    docker run --name nsenter_container --rm jpetazzo/nsenter cat /nsenter > ./nsenter && chmod +x ./nsenter
    ls -l nsenter
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search