LogoLogo
edgegap.comDashboard
  • 📘Learning Center
    • Getting Started
    • Unity Games
      • Getting Started - Servers
      • Developer Tools
    • Unreal Engine Games
      • Getting Started - Servers
      • Developer Tools
    • Matchmaking
      • Getting Started
      • Matchmaker In-Depth
      • Ping Beacons
    • Advanced Features
      • Apps and Versions
      • Deployments
      • Managed Clusters
  • API Reference
    • Dedicated Servers
    • Integration
    • Matchmaking
    • Peer to Peer
  • Release Notes
  • 📚Documentation
    • Sample Projects
      • Unity Netcodes
        • Unity NGO
        • Photon Fusion 1
        • Photon Fusion 2
        • Mirror
        • Mirror WebGL
        • Fishnet
        • Fishnet WebGL
        • Photon Bolt
      • Unreal Top-Down Sample
      • NuxtJS
      • Ruby On Rails
      • Unity Lobbies
      • Unity Matchmaker
    • Tools & Integrations
      • Container
        • What is Docker
        • Your First Docker
        • The Good Practices
        • SSH in Your Container
        • External Registries
          • Docker Hub
          • AWS ECR
          • GCP GCR
          • Gitlab registry
      • Deploy from Nakama
      • EOS Lobby Integration
      • Switch From Gamelift
      • Switch From Multiplay
      • Playfab Bridge
    • Deployment
      • Endpoint Storage
        • How to Save Logs
        • Upload File to Deployment
      • Webhooks
    • Application
      • Command and Arguments
      • 1:1 Port Mapping
    • Session
      • How They Work
      • Application Version Configuration
      • Manage Request
      • Selectors Filtering
    • Fleet
      • Fleet Policy
      • Policy Filter
      • Linking Version
      • Fleet's Deployment
    • Container Registry
    • Distributed Relay
      • Matchmaker/Lobby
      • Relay Edgegap API
      • Transport Samples
    • Lobby
      • Lobby Service
      • Functions
    • Glossary
    • SLA Terms
Powered by GitBook
LogoLogo

Connect with Community

  • Discord
  • Linkedin
  • X

Read More

  • Release Notes
  • Blog
  • Enterprise
  • Legal
  • edgegap.com

© 2025 Edgegap

On this page
  • Concept
  • Example

Was this helpful?

  1. Documentation
  2. Application

Command and Arguments

You can replace the ENTRYPOINT and the CMD declared in your Dockerfile from your application version or when making a deployment.

This is intended for advanced users. If you are unfamiliar with those concepts, you should leave it to its default value, as it can break your container boot sequence.

Concept

When creating your application version, you can optionally specify the command and the arguments to override the default value null. If left to null, the container runtime will use the ENTRYPOINT and the CMD declared in your Dockerfile.

Otherwise, it will replace the ENTRYPOINT and the CMD of your container runtime in all deployments of this version.

You can also pass those override parameters inside a Deployment JSON body to override the Application Version.

{
  "app_name": "example",
  "version_name": "v1",
  "ip_list": ["1.2.3.4", "4.3.2.1"],
  "command": "/app/entrypoint.sh",
  "arguments": "--debug"
}

The deployment body will always override the application version parameters.

The order of override is Deployment > Application Version > Container Default

Example

From this Dockerfile:

FROM alpine
COPY . /app
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["--debug", "--port", "$(ARBITRIUM_PORT_GAME_EXTERNAL)"]

You can see your container runtime invoked like this: /app/entrypoint.sh --debug --port 12345

To change this behavior from the application or the deployment, you can specify it this way:

{
    [...]
    "command": "/app/entrypoint.sh",
    "arguments": "--production --port $(ARBITRIUM_PORT_GAME_EXTERNAL)"
}

Which will result in a container runtime invoked like this: /app/entrypoint.sh --production --port 12345

PreviousApplicationNext1:1 Port Mapping

Last updated 2 months ago

Was this helpful?

Please use if you want to use the command and arguments override with ports like this example.

📚
injected context variables