Skip to content

Provide official docker image #423

Open

Description

official docker image

would be helpful if you published an docker image with azcopy baked in

Activity

  1. pniederlag commented on May 31, 2019

    @pniederlag
    Author

    my image is here (v10):
    https://cloud.docker.com/u/datenbetrieb/repository/docker/datenbetrieb/azcopy

    an older release can be found on:
    https://hub.docker.com/r/hawaku/azcopy

    [Edit, by maintainer John Rusk (@JohnRusk) : To avoid any possible confusion, the above links are not supplied by Microsoft.]

  2. JohnRusk commented on Jun 5, 2019

    @JohnRusk
    Contributor

    Thanks for the suggestion Peter Niederlag (@pniederlag). It's probably not something we can do soon, but it does sound like we should look into at some stage.

  3. colemickens commented on Aug 23, 2019

    @colemickens

    +1. Please?

    Apparently the Azure CLI is now dependent on this tool for basic functionality. PLEASE include this in the Azure-CLI container or package it in a new container. I can't be bothered to try to package or wrap the CLI and then now every other external tool that its going to expect or download on the fly and shell out to.... just to do very basic things like "create an RG and upload a disk".

  4. junkiebev commented on Aug 26, 2019

    @junkiebev

    This is how am doing this Cole Mickens (@colemickens) / John Rusk (@JohnRusk)

    It's effectively a build artifact which makes the azcopy v10 (linux) binary available for copying from /usr/bin/azcopy when you build a container. It'd be easy to modify it and switch the FROM scratch to a supported image like ubuntu and put CMD azcopy in there or something similar.

    FROM alpine as azcopy
    RUN apk add --no-cache wget \
    &&	wget https://aka.ms/downloadazcopy-v10-linux -O /tmp/azcopy.tgz \
    &&	export BIN_LOCATION=$(tar -tzf /tmp/azcopy.tgz | grep "/azcopy") \
    &&	tar -xzf /tmp/azcopy.tgz $BIN_LOCATION --strip-components=1 -C /usr/bin
    FROM scratch
    COPY --from=azcopy /usr/bin/azcopy /usr/bin/azcopy
  5. JohnRusk commented on Aug 27, 2019

    @JohnRusk
    Contributor

    If you want to lock it to a particular version, instead of always getting the latest, see tips here https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?toc=%2fazure%2fstorage%2fblobs%2ftoc.json#obtain-a-static-download-link

  6. jocatalin commented on Aug 29, 2019

    @jocatalin

    +1 would be useful to have an official image (e.g. to be consumed in azure devops pipelines)

  7. SudoBrendan commented on Dec 5, 2019

    @SudoBrendan

    Adding on to Jeff Kolb (@junkiebev) s work - I had to write something similar to the following for an alpine base:

    FROM alpine AS build
    RUN apk add --no-cache wget \
    &&	wget https://aka.ms/downloadazcopy-v10-linux -O /tmp/azcopy.tgz \
    &&	export BIN_LOCATION=$(tar -tzf /tmp/azcopy.tgz | grep "/azcopy") \
    &&	tar -xzf /tmp/azcopy.tgz $BIN_LOCATION --strip-components=1 -C /usr/bin
    
    FROM alpine:3.9 AS final
    RUN apk update && apk add libc6-compat ca-certificates
    COPY --from=build /usr/bin/azcopy /usr/local/bin/azcopy
    RUN ldd /usr/local/bin/azcopy
  8. JohnRusk commented on Dec 5, 2019

    @JohnRusk
    Contributor

    Note that if you use the link noted above (aka.ms/downloadazcopy-v10-linux) you don't know exactly which version you'll get, other than it will be the latest one at the time you hit the URL. If you would rather get a repeatable version (the same one) every time, you can follow the instructions here to get a URL to a specific version: https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10#use-azcopy-in-a-script

  9. dpolivy commented on Dec 7, 2019

    @dpolivy

    Adding my +1 for this. I'm having issues running azcopy in a Docker container using this image, I think because it doesn't have the right CA certificates installed.

  10. dylanwulf commented on Mar 12, 2020

    @dylanwulf

    Running azcopy inside of a docker container is very difficult right now, because azcopy v10 depends on keyctl for storing auth tokens. But keyctl is disabled by docker's default seccomp profile (https://docs.docker.com/engine/security/seccomp/). So the only way I can currently get azcopy to work inside a docker container is with SAS tokens.

  11. JohnRusk commented on Mar 12, 2020

    @JohnRusk
    Contributor

    Good point Dylan Wulf (@dylanwulf) . We're aware of the issues and considering solutions, likely for inclusion in AzCopy 10.5. At this stage, its likely that the solution will work for Service Principal Authentication (SPA) and Managed Service Identity (MSI); but not for logging in as a "human" user. We believe that limitation is probably a good thing for such cases, since service-like usage should use SPA or MSI rather than a human's account. How does that sound to you?

  12. dylanwulf commented on Mar 13, 2020

    @dylanwulf

    John Rusk (@JohnRusk) Sounds good! I was trying to use service principal authentication when I discovered this limitation

  13. kalyan123i commented on Jul 8, 2020

    @kalyan123i

    yes official image will help us a lot with pipelines

  14. brucethomax commented on Jul 13, 2020

    @brucethomax

    This is one of the easiest things to do, how is this not done yet? There are literal solutions in this thread. Threads like this are the reason the ecosystem around Azure is breaking down.

    </rant>

  15. franck-cussac commented on Jul 24, 2020

    @franck-cussac

    If you want to use SPA or logging as a human today in a container, you have to add ketctl and add_key syscalls in seccomp config file.

    You can find the default seccomp file here : https://raw.githubusercontent.com/docker/docker/v1.12.3/profiles/seccomp/default.json

    Just copy, modify it and use it in docker run command.

  16. derekrprice commented on Aug 13, 2020

    @derekrprice

    That's not really a solution since it opens up my system keychain to the container.

  17. juchom commented on Nov 27, 2020

    @juchom

    I have created a docker image with the given solutions here (thanks guys). Until we have an official image from Microsoft, I'll try to update it as soon as a new version of AzCopy will be available.

    Repo here:
    https://github.com/linoafr/docker-azcopy

    Docker hub:
    https://hub.docker.com/r/linoa/azcopy

  18. PeterDaveHello commented on Oct 15, 2021

    @PeterDaveHello

    For those who wants to specify specific azcopy version, I built one here:

    You can find out all the available versions here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions