Running docker build on own server fails with sudo

Robin's Avatar

Robin

Jul 24, 2019 @ 10:51 PM

Hi,

I've setup appveyor server on linux to run with docker image appveyor/build-image:minimal-ubuntu-18.04 but i seem to get error on sudo all the time even when it's the docker image that should run it?

  1. 1 Posted by Robin on Jul 24, 2019 @ 10:53 PM

    Robin's Avatar

    see images

  2. Support Staff 2 Posted by Feodor Fitsner on Jul 24, 2019 @ 11:08 PM

    Feodor Fitsner's Avatar

    Hi Robin,

    Looks like that enable-ssh.sh script is not adapted for running inside Docker container.

    You can "SSH" into running container by following these instructions: http://phase2.github.io/devtools/common-tasks/ssh-into-a-container/

  3. 3 Posted by Robin on Jul 24, 2019 @ 11:18 PM

    Robin's Avatar

    Hi Feodor,

    Thank you for your swift reply.

    Though it happens on everything i want todo with docker, see below.

  4. Support Staff 4 Posted by Feodor Fitsner on Jul 24, 2019 @ 11:21 PM

    Feodor Fitsner's Avatar

    You don't need to enable docker service as the build is already running inside Docker container.

    If you are looking to run docker commands inside containerized builds then you need to map Docker service socket and docker CLI tool: https://stackoverflow.com/a/56989896/1435891

  5. 5 Posted by Robin on Jul 24, 2019 @ 11:32 PM

    Robin's Avatar

    Ah thank you, that seemed to do the trick.

    I figure there isn't any docs for creating own images with appveyor build agent ?

  6. Support Staff 6 Posted by Feodor Fitsner on Jul 24, 2019 @ 11:35 PM

    Feodor Fitsner's Avatar

    There are docs for that: https://www.appveyor.com/docs/server/#customizing-appveyor-image

    Sorry the location is not obvious (work in progress) and thanks for trying our AppVeyor Server!

  7. Ilya Finkelshteyn closed this discussion on Sep 24, 2019 @ 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac