DEBUG=1 LOCALSTACK_API_KEY=XXXXXXX localstack start
__ _______ __ __
/ / ____ _________ _/ / ___// /_____ ______/ /__
/ / / __ \/ ___/ __ `/ /\__ \/ __/ __ `/ ___/ //_/
/ /___/ /_/ / /__/ /_/ / /___/ / /_/ /_/ / /__/ ,<
/_____/\____/\___/\__,_/_//____/\__/\__,_/\___/_/|_|
π» LocalStack CLI 2.2.0
[08:59:44] starting LocalStack in Docker mode π³ localstack.py:409
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ LocalStack Runtime Log (press CTRL-C to quit) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2023-10-03T08:59:44.091 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='activate_pro_key_on_host', value='localstack_ext.plugins:activate_pro_key_on_host', group='localstack.hooks.prepare_host')
2023-10-03T08:59:44.092 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='configure_extensions_dev_host', value='localstack_ext.extensions.plugins:configure_extensions_dev_host', group='localstack.hooks.prepare_host')
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='patch_community_pro_detection', value='localstack_ext.plugins:patch_community_pro_detection', group='localstack.hooks.prepare_host')
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='start_ec2_daemon', value='localstack_ext.plugins:start_ec2_daemon', group='localstack.hooks.prepare_host')
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='prepare_host_machine_id', value='localstack.utils.analytics.metadata:prepare_host_machine_id', group='localstack.hooks.prepare_host')
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.prepare_host.activate_pro_key_on_host = <function activate_pro_key_on_host at 0x103232320>)
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.prepare_host:activate_pro_key_on_host
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.prepare_host.configure_extensions_dev_host = <function configure_extensions_dev_host at 0x1032331c0>)
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : plugin localstack.hooks.prepare_host:configure_extensions_dev_host is disabled
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.prepare_host.patch_community_pro_detection = <function patch_community_pro_detection at 0x103232200>)
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.prepare_host:patch_community_pro_detection
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.prepare_host.start_ec2_daemon = <function start_ec2_daemon at 0x103232560>)
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.prepare_host:start_ec2_daemon
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.prepare_host.prepare_host_machine_id = <function prepare_host_machine_id at 0x101f73be0>)
2023-10-03T08:59:44.093 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.prepare_host:prepare_host_machine_id
2023-10-03T08:59:44.643 INFO --- [ MainThread] l.bootstrap.licensing : Successfully activated API key
2023-10-03T08:59:44.643 DEBUG --- [ MainThread] localstack_ext.plugins : pro activation done
2023-10-03T08:59:44.643 INFO --- [ MainThread] localstack.utils.bootstrap : Execution of "prepare_host" took 553.33ms
2023-10-03T08:59:44.643 DEBUG --- [ MainThread] localstack.utils.run : Executing command: ['docker', 'ps']
2023-10-03T08:59:44.781 DEBUG --- [ MainThread] localstack.utils.run : Executing command: ['docker', 'ps', '--format', '{{json . }}']
2023-10-03T08:59:44.825 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='configure_extensions_dev_container', value='localstack_ext.extensions.plugins:configure_extensions_dev_container', group='localstack.hooks.configure_localstack_container')
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='configure_pro_container', value='localstack_ext.plugins:configure_pro_container', group='localstack.hooks.configure_localstack_container')
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='_mount_machine_file', value='localstack.utils.analytics.metadata:_mount_machine_file', group='localstack.hooks.configure_localstack_container')
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] stevedore.extension : found extension EntryPoint(name='configure_edge_port', value='localstack.plugins:configure_edge_port', group='localstack.hooks.configure_localstack_container')
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.configure_localstack_container.configure_extensions_dev_container = <function configure_extensions_dev_container at 0x1032330a0>)
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : plugin localstack.hooks.configure_localstack_container:configure_extensions_dev_container is disabled
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.configure_localstack_container.configure_pro_container = <function configure_pro_container at 0x103232680>)
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.configure_localstack_container:configure_pro_container
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.configure_localstack_container._mount_machine_file = <function _mount_machine_file at 0x101f73d00>)
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.configure_localstack_container:_mount_machine_file
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : instantiating plugin PluginSpec(localstack.hooks.configure_localstack_container.configure_edge_port = <function configure_edge_port at 0x103233760>)
2023-10-03T08:59:44.826 DEBUG --- [ MainThread] plugin.manager : loading plugin localstack.hooks.configure_localstack_container:configure_edge_port
2023-10-03T08:59:44.827 DEBUG --- [ MainThread] l.u.c.docker_cmd_client : Run container with cmd: ['docker', 'run', '--rm', '--entrypoint', 'sh', '-p', '53:53', '-p', '53:53/udp', 'localstack/localstack', '-c', 'echo test123']
2023-10-03T08:59:44.827 DEBUG --- [ MainThread] localstack.utils.run : Executing command: ['docker', 'run', '--rm', '--entrypoint', 'sh', '-p', '53:53', '-p', '53:53/udp', 'localstack/localstack', '-c', 'echo test123']
2023-10-03T08:59:46.354 DEBUG --- [ MainThread] localstack.plugins : configuring container with edge ports: [443, 4566]
2023-10-03T08:59:46.359 DEBUG --- [ MainThread] localstack.utils.run : Executing command: ['which', 'tail']
2023-10-03T08:59:46.372 DEBUG --- [-functhread1] localstack.utils.run : Executing command: ['tail', '-f', '/var/folders/82/npr22gmd18x9kqvh2zvg17rm0000gn/T/localstack-cli/localstack_main_container.log']
2023-10-03T08:59:46.377 DEBUG --- [-functhread2] localstack.utils.run : Executing command: ['docker', 'ps', '--format', '{{json . }}']
2023-10-03T08:59:46.449 DEBUG --- [-functhread2] l.u.c.docker_cmd_client : Run container with cmd: ['docker', 'run', '--rm', '--name', 'localstack_main', '--privileged', '-v', '/Users/petersimpson/.kube/config:/root/.kube/config', '-v', '/Users/petersimpson/Library/Caches/localstack-cli/machine.json:/var/lib/localstack/cache/machine.json', '-v', '/Users/petersimpson/Library/Caches/localstack/volume:/var/lib/localstack', '-v', '/var/run/docker.sock:/var/run/docker.sock', '-p', '127.0.0.1:443:443', '-p', '127.0.0.1:4566:4566', '-p', '127.0.0.1:4510-4559:4510-4559', '-e', 'DEBUG=1', '-e', 'LOCALSTACK_API_KEY=XXXXXXX', '-e', 'ACTIVATE_PRO=1', '-e', 'LOCALSTACK_CLI=1', '-e', 'DOCKER_HOST=unix:///var/run/docker.sock', '-e', 'SET_TERM_HANDLER=1', '-p', '0.0.0.0:53:53', '-p', '0.0.0.0:53:53/udp', 'localstack/localstack-pro']
2023-10-03T08:59:46.450 DEBUG --- [-functhread2] localstack.utils.run : Executing command: ['docker', 'run', '--rm', '--name', 'localstack_main', '--privileged', '-v', '/Users/petersimpson/.kube/config:/root/.kube/config', '-v', '/Users/petersimpson/Library/Caches/localstack-cli/machine.json:/var/lib/localstack/cache/machine.json', '-v', '/Users/petersimpson/Library/Caches/localstack/volume:/var/lib/localstack', '-v', '/var/run/docker.sock:/var/run/docker.sock', '-p', '127.0.0.1:443:443', '-p', '127.0.0.1:4566:4566', '-p', '127.0.0.1:4510-4559:4510-4559', '-e', 'DEBUG=1', '-e', 'LOCALSTACK_API_KEY=XXXXXX', '-e', 'ACTIVATE_PRO=1', '-e', 'LOCALSTACK_CLI=1', '-e', 'DOCKER_HOST=unix:///var/run/docker.sock', '-e', 'SET_TERM_HANDLER=1', '-p', '0.0.0.0:53:53', '-p', '0.0.0.0:53:53/udp', 'localstack/localstack-pro']
2023-10-03T08:59:46.559 ERROR --- [-functhread2] localstack.utils.bootstrap : Error while starting LocalStack container
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/localstack/utils/container_utils/docker_cmd_client.py", line 680, in _run_async_cmd
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['docker', 'run', '--rm', '--name', 'localstack_main', '--privileged', '-v', '/Users/petersimpson/.kube/config:/root/.kube/config', '-v', '/Users/petersimpson/Library/Caches/localstack-cli/machine.json:/var/lib/localstack/cache/machine.json', '-v', '/Users/petersimpson/Library/Caches/localstack/volume:/var/lib/localstack', '-v', '/var/run/docker.sock:/var/run/docker.sock', '-p', '127.0.0.1:443:443', '-p', '127.0.0.1:4566:4566', '-p', '127.0.0.1:4510-4559:4510-4559', '-e', 'DEBUG=1', '-e', 'LOCALSTACK_API_KEY=XXXXXX', '-e', 'ACTIVATE_PRO=1', '-e', 'LOCALSTACK_CLI=1', '-e', 'DOCKER_HOST=unix:///var/run/docker.sock', '-e', 'SET_TERM_HANDLER=1', '-p', '0.0.0.0:53:53', '-p', '0.0.0.0:53:53/udp', 'localstack/localstack-pro']' returned non-zero exit status 125.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/localstack/utils/bootstrap.py", line 416, in run
return DOCKER_CLIENT.run_container(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/localstack/utils/container_utils/docker_cmd_client.py", line 605, in run_container
return self._run_async_cmd(cmd, stdin, kwargs.get("name") or "", image_name)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/localstack/utils/container_utils/docker_cmd_client.py", line 696, in _run_async_cmd
raise ContainerException(
localstack.utils.container_utils.container_client.ContainerException: ('Docker process returned with errorcode 125', None, b'docker: Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:443 -> 0.0.0.0:0: not allowed as current user.\nYou can enable privileged port mapping from Docker -> Settings... -> Advanced -> Enable privileged port mapping.\ntime="2023-10-03T08:59:46+01:00" level=error msg="error waiting for container: "\n')
Error: Docker process returned with errorcode 125