Skip to content
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

OError: [Errno 2] No such file or directory: '/home/ubuntu/.docker/config.json #13

Open
sudhakarVuppalapati opened this issue Nov 13, 2018 · 3 comments

Comments

@sudhakarVuppalapati
Copy link

python setup.py -m setup -r us-west-1
INFO:main:Mode: setup
INFO:botocore.credentials:Found credentials in shared credentials file: ~/.aws/credentials
ERROR:main:An error occurred (AccessDenied) when calling the CreateRole operation: User: arn:aws:iam::638370140697:user/Sudhakar is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::638370140697:role/sudhakar
Traceback (most recent call last):
File "setup.py", line 632, in
main()
File "setup.py", line 622, in main
setup_results = setup(project_name=project_name, service_list=service_list, region=region)
File "setup.py", line 294, in setup
docker_login_config()
File "setup.py", line 252, in docker_login_config
with open(filename, 'r+') as f:
IOError: [Errno 2] No such file or directory: '/home/ubuntu/.docker/config.json'

Please help me what i am doing wrong..

I have changed "MicroECSServiceRole" to sudhakar my name

@sudhakarVuppalapati
Copy link
Author

setup.py -m setup -r us-west-1
INFO:main:Mode: setup
INFO:botocore.credentials:Found credentials in shared credentials file: ~/.aws/credentials
INFO:main:ECS Service Role Create: arn:aws:iam::638370140697:role/sudhakar1
INFO:main:Task Role Create: arn:aws:iam::638370140697:role/MicroECSTaskRole
INFO:main:ECS Agent Role Create: arn:aws:iam::638370140697:role/MicroECSAgentRole
Traceback (most recent call last):
File "setup.py", line 632, in
main()
File "setup.py", line 622, in main
setup_results = setup(project_name=project_name, service_list=service_list, region=region)
File "setup.py", line 294, in setup
docker_login_config()
File "setup.py", line 252, in docker_login_config
with open(filename, 'r+') as f:
IOError: [Errno 2] No such file or directory: '/home/ubuntu/.docker/config.json'

@sudhakarVuppalapati
Copy link
Author

this is the update please help me what I am doing wrong...

@mhdbashar
Copy link

You can try to login to your Docker account first to create ".docker/config.json" file
$docker longin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants