Running docker build on own server fails with sudo
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?
-
fail.PNG 7.48 KB
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
1 Posted by Robin on Jul 24, 2019 @ 10:53 PM
see images
Support Staff 2 Posted by Feodor Fitsner on Jul 24, 2019 @ 11:08 PM
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 Posted by Robin on Jul 24, 2019 @ 11:18 PM
Hi Feodor,
Thank you for your swift reply.
Though it happens on everything i want todo with docker, see below.
Support Staff 4 Posted by Feodor Fitsner on Jul 24, 2019 @ 11:21 PM
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 anddocker
CLI tool: https://stackoverflow.com/a/56989896/14358915 Posted by Robin on Jul 24, 2019 @ 11:32 PM
Ah thank you, that seemed to do the trick.
I figure there isn't any docs for creating own images with appveyor build agent ?
Support Staff 6 Posted by Feodor Fitsner on Jul 24, 2019 @ 11:35 PM
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!
Ilya Finkelshteyn closed this discussion on Sep 24, 2019 @ 09:01 PM.