-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Need help] Can't run the first docker command #25
Comments
Seems the error is from
We have firewall applied to ec2 instance, should we open the port |
You should not need to open up port I see that you're setting Also, can you confirm that you ran the |
So I need run Thanks. |
Correct. |
I have added the
But still get same error when |
Seems my problem is closed to this issue #9, port 8080 is used already. I change to
Now I got the same error:
|
Seems the issue is a bug about some new commits between v1.0.0 and v1.2.0 I did tests with v1.2.0. v1.1.0 and v1.0.0, it runs fine with
Now I start testing the real function, will update for the result. Update 1Got below error.
And error login container
I can get the iam role name when run curl command on its host
But when run the same command in container, I got Update 2The gateway is 172.17.0.1, but the error log in container If I manually curl to Update 3I am very close to make it work, in fact the error in
But I have applied below trust relationships policy to the host's iam role.
|
I finally made it work. The missing part is, I didn't set properly for So Make sure you set the assume role on both (instance iam role and the role which container will be assumed) reference Netflix/security_monkey#732 (comment) |
I have followed the Usage README, set
sts:assume-role
and trust Relationship to be assumed by the root role.I currently login the ec2 instance which has the iam role with above changes.
But when I run the first docker command (
docker run --volume /var/run/docker.sock:/var/run/docker.sock --restart=always --net=host swipely/iam-docker:latest
), I got below error:then I feed environment variable
iam-profile
into container:I got another error
how to fix the issue?
I already run the docker command with root permission.
Conslution
swipely/iam-docker:v1.0.0
works in my enviroinment. Tags with latest, v1.2.0 and v1.1.0 doesn't work.8080
is not used by the host, otherwise, use other ports (reference: [Need help] Can't run the first docker command #25 (comment))The text was updated successfully, but these errors were encountered: