Francisco Tanudjaja
01/07/2021, 8:38 PM$docker run -it prefecthq/prefect:latest bash
... within the container
root@8afe017ae8ef:/# prefect backend server
Backend switched to server
root@8afe017ae8ef:/# prefect server start
Exception caught; killing services (press ctrl-C to force)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/prefect/cli/server.py", line 347, in start
["docker-compose", "pull"], cwd=compose_dir_path, env=env
File "/usr/local/lib/python3.7/subprocess.py", line 358, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/local/lib/python3.7/subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'docker-compose': 'docker-compose'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/prefect", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/prefect/cli/server.py", line 385, in start
["docker-compose", "down"], cwd=compose_dir_path, env=env
File "/usr/local/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'docker-compose': 'docker-compose'
It's likely I'm missing something basic. Any tips appreciated. Thanks.Chris White
prefect server start
uses docker-compose
under the hood. Running Docker within Docker is typically considered an anti-pattern and is not fully supported by dockerFrancisco Tanudjaja
01/07/2021, 8:58 PMdocker run -it prefecthq/prefect:latest
which seem to default to tini command with no additional info.Zanie
prefect
module locally then using the CLI to spin up the necessary docker containers.Francisco Tanudjaja
01/07/2021, 9:17 PMZanie
Francisco Tanudjaja
01/07/2021, 9:22 PMZanie