awscli v2 requires docker to work - it runs a docker image with the command in it.
This is not easy to setup for use inside another docker which is what's built here.
$ awsv2 s3 ls .
Traceback (most recent call last):
File "/srv/conda/envs/notebook/bin/awsv2", line 10, in <module>
sys.exit(main_cli())
^^^^^^^^^^
File "/srv/conda/envs/notebook/lib/python3.12/site-packages/awscliv2/main.py", line 64, in main_cli
sys.exit(main(sys.argv[1:]))
^^^^^^^^^^^^^^^^^^
File "/srv/conda/envs/notebook/lib/python3.12/site-packages/awscliv2/main.py", line 55, in main
exit_code = runner.run_awscli_v2_detached(namespace.other)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/conda/envs/notebook/lib/python3.12/site-packages/awscliv2/api.py", line 129, in run_awscli_v2_detached
return self._run_detached_subprocess(cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/conda/envs/notebook/lib/python3.12/site-packages/awscliv2/api.py", line 71, in _run_detached_subprocess
p = subprocess.Popen(cmd, encoding=self.encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/conda/envs/notebook/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/srv/conda/envs/notebook/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'docker'
Description
awscli v2 requires docker to work - it runs a docker image with the command in it.
This is not easy to setup for use inside another docker which is what's built here.
The alternative is aws cli v1
conda install awscli(from conda-forge)Steps to Reproduce