Cannot connect to the Docker daemon on TeamCity build agent in AWS
up vote
0
down vote
favorite
I've got build agent machine on Amazon Linux AMI. It has docker container jetbrains/teamcity-agent:latest
. I can see build agent in TeamCity panel.
When I'm trying to run build with docker build/push commands I'm getting this error
Cannot login to registry docker.io (new); cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?; exit code 1 (Step: docker build (Docker))
What's wrong with teamcity-agent
?
docker teamcity docker-aws
add a comment |
up vote
0
down vote
favorite
I've got build agent machine on Amazon Linux AMI. It has docker container jetbrains/teamcity-agent:latest
. I can see build agent in TeamCity panel.
When I'm trying to run build with docker build/push commands I'm getting this error
Cannot login to registry docker.io (new); cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?; exit code 1 (Step: docker build (Docker))
What's wrong with teamcity-agent
?
docker teamcity docker-aws
Are you sure that this problem is withteamcity-agent
? What happens if you just try to rundocker ps
or something like that?
– Christian Hujer
Nov 10 at 14:20
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've got build agent machine on Amazon Linux AMI. It has docker container jetbrains/teamcity-agent:latest
. I can see build agent in TeamCity panel.
When I'm trying to run build with docker build/push commands I'm getting this error
Cannot login to registry docker.io (new); cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?; exit code 1 (Step: docker build (Docker))
What's wrong with teamcity-agent
?
docker teamcity docker-aws
I've got build agent machine on Amazon Linux AMI. It has docker container jetbrains/teamcity-agent:latest
. I can see build agent in TeamCity panel.
When I'm trying to run build with docker build/push commands I'm getting this error
Cannot login to registry docker.io (new); cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?; exit code 1 (Step: docker build (Docker))
What's wrong with teamcity-agent
?
docker teamcity docker-aws
docker teamcity docker-aws
asked Nov 10 at 14:18
Tim
528
528
Are you sure that this problem is withteamcity-agent
? What happens if you just try to rundocker ps
or something like that?
– Christian Hujer
Nov 10 at 14:20
add a comment |
Are you sure that this problem is withteamcity-agent
? What happens if you just try to rundocker ps
or something like that?
– Christian Hujer
Nov 10 at 14:20
Are you sure that this problem is with
teamcity-agent
? What happens if you just try to run docker ps
or something like that?– Christian Hujer
Nov 10 at 14:20
Are you sure that this problem is with
teamcity-agent
? What happens if you just try to run docker ps
or something like that?– Christian Hujer
Nov 10 at 14:20
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I guess that the jetbrains/teamcity-agent:latest
will be running as a user that does not have docker permissions. Either the user that runs the commands in this image needs to be added to the group docker, or via ACLs be given permission to the docker socket /var/run/docker.sock
. Note that this is root
-equivalent.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I guess that the jetbrains/teamcity-agent:latest
will be running as a user that does not have docker permissions. Either the user that runs the commands in this image needs to be added to the group docker, or via ACLs be given permission to the docker socket /var/run/docker.sock
. Note that this is root
-equivalent.
add a comment |
up vote
0
down vote
I guess that the jetbrains/teamcity-agent:latest
will be running as a user that does not have docker permissions. Either the user that runs the commands in this image needs to be added to the group docker, or via ACLs be given permission to the docker socket /var/run/docker.sock
. Note that this is root
-equivalent.
add a comment |
up vote
0
down vote
up vote
0
down vote
I guess that the jetbrains/teamcity-agent:latest
will be running as a user that does not have docker permissions. Either the user that runs the commands in this image needs to be added to the group docker, or via ACLs be given permission to the docker socket /var/run/docker.sock
. Note that this is root
-equivalent.
I guess that the jetbrains/teamcity-agent:latest
will be running as a user that does not have docker permissions. Either the user that runs the commands in this image needs to be added to the group docker, or via ACLs be given permission to the docker socket /var/run/docker.sock
. Note that this is root
-equivalent.
answered Nov 10 at 14:22
Christian Hujer
9,78651931
9,78651931
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239847%2fcannot-connect-to-the-docker-daemon-on-teamcity-build-agent-in-aws%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you sure that this problem is with
teamcity-agent
? What happens if you just try to rundocker ps
or something like that?– Christian Hujer
Nov 10 at 14:20