docker run --rm -v "$(pwd)":/usr/local/share/mulesoft/flex-gateway/conf.d -p 8085:8085 docker/mulesoft/flex-gateway
docker logs <id-or-name-of-the-container>If you check the logs for the container, you will see a message similar to the one below:
[flex-gateway-agent][error] the following errors where found during commands execution: (Extension default/http-basic-authentication-flex: the registration configuration is missing), (Extension default/jwt-validation-definition: the registration configuration is missing), (Extension default/ip-blocklist-definition: the registration configuration is missing), (Extension default/openidconnect-access-token-enforcement-flex: the registration configuration is missing), (Extension default/header-removal-impl: the registration configuration is missing), (Extension default/http-caching-definition: the registration configuration is missing), (Extension default/cors-flex: the registration configuration is missing), (Extension default/envoy-route: the registration configuration is missing), (Extension default/extension-implementation: the registration configuration is missing), (Extension default/rate-limiting-sla-based-flex: the registration configuration is missing), (Extension default/extension-metrics: the registration configuration is missing), (Extension default/client-id-enforcement-definition: the registration configuration is missing), (Extension default/header-removal-definition: the registration configuration is missing), (Extension default/ip-blocklist-flex: the registration configuration is missing), (Extension default/monitoring: the registration configuration is missing), (Extension default/oauth2-token-introspection-flex: the registration configuration is missing), (Extension default/route: the registration configuration is missing), (Extension default/ldap-authentication-flex: the registration configuration is missing), (Extension default/envoy-tls: the registration configuration is missing), (Extension default/open-id-definition: the registration configuration is missing), (Extension default/jwt-validation-flex: the registration configuration is missing), (Extension default/header-removal-flex: the registration configuration is missing), (Extension default/extension-authorization: the registration configuration is missing), (Extension default/tls: the registration configuration is missing), (Extension default/envoy-filter: the registration configuration is missing), (Extension default/header-injection-definition: the registration configuration is missing), (Extension default/ip-allowlist-definition: the registration configuration is missing), (Extension default/envoy-api-context: the registration configuration is missing), (Extension default/proxy-wasm-filter: the registration configuration is missing), (Extension default/shared-storage: the registration configuration is missing), (Extension default/oauth2-token-introspection-definition: the registration configuration is missing), (Extension default/extension-definition: the registration configuration is missing), (Extension default/cors-definition: the registration configuration is missing), (Extension default/extension-authentication: the registration configuration is missing), (Extension default/api-context: the registration configuration is missing), (Extension default/header-injection-impl: the registration configuration is missing), (Extension default/metering: the registration configuration is missing), (Extension default/tls-inbound: the registration configuration is missing), (Extension default/spike-schema: the registration configuration is missing), (Extension default/http-basic-authentication-definition: the registration configuration is missing), (Extension default/tls-common: the registration configuration is missing), (Extension default/extension-qos: the registration configuration is missing), (Extension default/rate-limit-sla-definition: the registration configuration is missing), (Extension default/client-id-enforcement-flex: the registration configuration is missing), (Extension default/oauth2-token-introspection-impl: the registration configuration is missing), (Extension default/http-caching-flex: the registration configuration is missing), (Extension default/json-threat-protection-definition: the registration configuration is missing), (Extension default/rate-limit-definition: the registration configuration is missing), (Extension default/message-logging-flex: the registration configuration is missing), (Extension default/spike-control-flex: the registration configuration is missing), (Extension default/header-injection-flex: the registration configuration is missing), (Extension default/ip-allowlist-flex: the registration configuration is missing), (Extension default/open-id-impl: the registration configuration is missing), (Extension default/logging-definition: the registration configuration is missing), (Extension default/json-threat-protection-flex: the registration configuration is missing), (Extension default/rate-limiting-flex: the registration configuration is missing)
mkdir gateway-dir2. Change the current directory to the newly created one;
cd gateway-dir/
docker pull mulesoft/flex-gateway
docker run --entrypoint flexctl -u $UID \ -v "$(pwd)":/registration mulesoft/flex-gateway \ register --organization=<your-organization-id> \ --token=<the-token-from-ui> \ --output-directory=/registration \ --connected=true \ <name-of-your-flex-gateway>
docker run --rm \ > -v "$(pwd)":/usr/local/share/mulesoft/flex-gateway/conf.d \ > -p 8081:8081 \ > mulesoft/flex-gateway
vagrant@ubuntu:~$ mkdir gateway-dir vagrant@ubuntu:~$ cd gateway-dir/ vagrant@ubuntu:~/gateway-dir$ docker pull mulesoft/flex-gateway Using default tag: latest latest: Pulling from mulesoft/flex-gateway Digest: sha256:9871aed5bcacc9cd5e8babac61ecf1bf22257cf623b01e200d15cecfd2609bab Status: Image is up to date for mulesoft/flex-gateway:latest docker.io/mulesoft/flex-gateway:latest vagrant@ubuntu:~/gateway-dir$ docker run --entrypoint flexctl -u $UID \ > -v "$(pwd)":/registration mulesoft/flex-gateway \ > register --organization=ag1f0e72-159f-4293-b3bc-e579367f95a8 \ > --token=9cd02edf-eg24-4516-bad4-618bc3h5b46f \ > --output-directory=/registration \ > --connected=true \ > new-flex-gw Starting registration, please be patient. Registration completed, the configuration files were written in directory "/registration". For security, modify the file permissions to restrict production scenario access to the user running flex. vagrant@ubuntu:~/gateway-dir$ ls registration.yaml vagrant@ubuntu:~/gateway-dir$ docker run --rm \ > -v "$(pwd)":/usr/local/share/mulesoft/flex-gateway/conf.d \ > -p 8081:8081 \ > mulesoft/flex-gateway [flex-gateway-init][info] Starting [flex-gateway-init][info] Creating /var/tmp/mulesoft/flex-gateway/log [flex-gateway-init][info] Linking /etc/services.d to /var/tmp/mulesoft/flex-gateway/etc/services.d
001119852

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.