question

Feez avatar image
Feez asked

Deploying Linux container with custom Start Command Does not work.

Hello. I've always deployed Linux Docker images and I create the build using "CreateBuildWithCustomContainer" I want to override the StartCommand when creating a build so that I can override the server arguments on each build

My default CMD in the image: [./GameServer.sh", "-log","-EnableGSDK"] This is the StartCommand I pass: "./GameServer.sh -EnableGSDK"

Thank you in advance

multiplayer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

It looks like you are using API CreateBuildWithCustomContainer with “ContainerRunCommand” to create the server build, then as https://community.playfab.com/questions/42685/how-to-use-and-test-containerruncommand-on-linux-c.html mentions that you may need to add execution permissions to the .sh file first (use the command chmod +x). You can try again to see if issue persists.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.