Docker on Windows Server 2016 TP4 Downloading git in container through powershell

I have an angular UI and a nodejs api. I am currently running windows server 2016 TP4 in Azure.Here are the steps I go through:

  1. I am able to remote in, create images, create containers based off those images, and attach to those containers no problem.
  2. I pulled a nodejs image from docker: docker pull microsoft/node and then created a container from that image: docker run --name 'my_api_name' -it microsoft/node cmd
  3. That command takes me into the container via a windows command prompt. I type powershell which takes me into a powershell shell and i can run npm commands.

  4. ERROR: manifest for hyperledger/fabric-orderer:latest not found
  5. Why does the new built image does not have the new installed package?
  6. Accessing Docker for Mac via Remote Access API
  7. how to detach from a docker container
  8. Start DB2 server in docker container on a specific date without changing host date
  9. Application Insights SDK agent in Linux Docker container?
  10. My question is, how do I install git onto this container? I want to reach out to the repository holding my app, pull it down and run it in this container. I will eventually push this container image up to the docker registry so clients can pull it down and run it on their windows env.

  • Pull docker image which is not pushed to repository
  • How to bind volumes in docker-py?
  • How to Give Docker Containers more resources
  • Remote access services exposed by docker container
  • Dockerfile/npm: create a sudo user to run npm install
  • Local pypi server tells me 403 Forbidden when registering packages
  • 2 Solutions collect form web for “Docker on Windows Server 2016 TP4 Downloading git in container through powershell”

    You can do it like this in admin shell:

    iex ((new-object net.webclient).DownloadString(''))
    cinst -y git

    Ideally you wouldn’t add git to the container and try to pull your repo into it (that will also get messy with credentials for private repos

    You should do your source control management on your host and then build the source code into a container. It’s not yet there for the Windows Dockerfiles, but the Linux ones have ONBUILD. It should be possible to replicate that for Windows.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.