Docker container creation instance process

@CubeCoders-Bot
Docker container creation instance process
Installation details and procedures required

Alright, so you’re asking about the Docker container creation process for an AMP instance? Let’s keep it AMP-specific and straightforward. Use AMP’s instance manager for handling this process instead of messing around directly with Docker commands.

However, if your question relates to any specific steps or issues, just point me in the right direction, and I’ll break it down for you. What are you aiming to accomplish?


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

I reinstalled AMP Instance Manager and Docker is not installed yet What should I do next?

Alright, step one—you obviously need Docker installed if that’s the route you want to take. Since you’ve got AMP Instance Manager reinstalled, install Docker based on your system’s OS.

Let me know your platform (Windows or Linux), and I’ll guide you through. Or if Docker is already installed after all, lemme know; I’ll help with the AMP setup instead!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

The operating system uses Windows 11

Alright, Windows 11 user! First, install Docker Desktop for Windows. Just:

  1. Head over to Docker’s website.
  2. Download Docker Desktop for Windows and follow the installer steps.
  3. Make sure WSL2 is enabled—Docker Desktop often requires it.

Once that’s up and running, we can jump into setting Docker as the backend for AMP. Let me know when Docker’s set up! :rocket:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Docker Desktop installation completed WSL2 enabled

Solid work! Now it’s time to set Docker Desktop as the environment AMP will use. Open up the AMP web interface (under your ADS instance) and:

  1. Head to Configuration from the menu.
  2. Use the search box to look for “Docker.”
  3. Enable Docker support and set it to use your Docker Desktop installation.

Save those settings and restart the ADS instance for AMP to play nice with Docker. Ping me once you’ve done that, and we’ll get to instance creation!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Create in Docker Containers button is turned on

Beautiful! Now you can create an AMP instance in a Docker container:

  1. Go back to the main interface of your ADS instance.
  2. Click Create Instance and choose your desired game/application.
  3. In the instance creation window, you’ll see an option to deploy it as a Docker container. Enable that.

Follow along with the setup wizard and AMP will handle the Docker magic for you. Let me know if it throws any tantrums or if you need extra info!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Are there no other switches or settings that need to be modified?

Nope, AMP’s setup for Docker should be pretty plug-and-play unless you’ve got some custom environment setups or network rules. That said, if you don’t already, ensure Docker Desktop is running when using AMP (or it’ll obviously complain).

If you want to tweak advanced Docker stuff later (volume mappings, ports, etc.), AMP generally handles it during instance creation.

Test it out with an instance, and let’s see if any gremlins pop up. :bug:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

[05:43:37] [Program Info/1] : Starting AMP version 2.6.0.12 (Phobos), built 24/02/2025 17:12
[05:43:37] [Program Info/1] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[05:43:37] [Core Info/1] : Loading configuration from provisionargs.kvp…
[05:43:37] [Program Info/1] : Running in a Docker environment.
[05:43:37] [Program Info/1] : OS: Linux / x86_64
[05:43:37] [Program Info/1] : CPU: Intel(R) Core™ i7-8650U CPU @ 1.90GHz (4C/8T)
[05:43:37] [Program Info/1] : RAM: 7904MB
[05:43:37] [Program Info/1] : AMP Instance ID: 2310c8a4-7310-4402-ac91-97baa5aaf8b1
[05:43:37] [Program Info/1] : Performing first-time setup for this instance, please wait…
[05:43:40] [Core Info/1] : Loaded GenericModule version 2.6.0.12 by CubeCoders Limited
[05:43:40] [Core Info/1] : Metrics publishing is enabled at udp://localhost:12820.
[05:43:40] [Loader Info/1] : Loaded FileManagerPlugin by CubeCoders Limited
[05:43:41] [Loader Info/1] : Loaded EmailSenderPlugin by CubeCoders Limited
[05:43:41] [Loader Info/1] : Loaded WebRequestPlugin by CubeCoders Limited
[05:43:41] [Loader Info/1] : Loaded LocalFileBackupPlugin by CubeCoders Limited
[05:43:41] [Loader Info/1] : Loaded CommonCorePlugin by CubeCoders Limited
[05:43:42] [Loader Info/1] : Loaded AnalyticsPlugin by CubeCoders Limited
[05:43:42] [System Error/9] : Missing plugin/assembly: MaxMind.Db (/AMP/Plugins/MaxMind.Db/MaxMind.Db.dll) for
[05:43:42] [Loader Info/1] : GenericModule requests dependency steamcmdplugin…
[05:43:42] [System Info/9] : GeoIP database not found, downloading…
[05:43:42] [Loader Info/1] : Loaded steamcmdplugin by CubeCoders Limited
[05:43:42] [Loader Info/1] : GenericModule requests dependency RCONPlugin…
[05:43:42] [Loader Info/1] : Loaded RCONPlugin by CubeCoders Limited
[05:43:42] [Core Info/1] : Performing activation, please wait…
[05:43:44] [Core Info/1] : Activated successfully.
[05:43:44] [Core Info/1] : Licence Present: AMP Professional Edition - Lifetime Licence
[05:43:44] [Program Info/1] : AMP has completed its first time setup. Saving settings and shutting down.

[05:43:39] [Program Info/1] : Starting AMP version 2.6.0.12 (Phobos), built 24/02/2025 17:12
[05:43:39] [Program Info/1] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[05:43:39] [Program Info/1] : Running in a Docker environment.
[05:43:39] [Program Info/1] : OS: Linux / x86_64
[05:43:39] [Program Info/1] : CPU: Intel(R) Core™ i7-8650U CPU @ 1.90GHz (4C/8T)
[05:43:39] [Program Info/1] : RAM: 7904MB
[05:43:39] [Program Info/1] : AMP Instance ID: 2310c8a4-7310-4402-ac91-97baa5aaf8b1
[05:43:42] [Core Info/1] : Loaded GenericModule version 2.6.0.12 by CubeCoders Limited
[05:43:42] [Core Info/1] : Metrics publishing is enabled at udp://localhost:12820.
[05:43:42] [Loader Info/1] : Loaded FileManagerPlugin by CubeCoders Limited
[05:43:43] [Loader Info/1] : Loaded EmailSenderPlugin by CubeCoders Limited
[05:43:43] [Loader Info/1] : Loaded WebRequestPlugin by CubeCoders Limited
[05:43:43] [Loader Info/1] : Loaded LocalFileBackupPlugin by CubeCoders Limited
[05:43:43] [Loader Info/1] : Loaded CommonCorePlugin by CubeCoders Limited
[05:43:43] [Loader Info/1] : Loaded AnalyticsPlugin by CubeCoders Limited
[05:43:43] [System Error/11] : Missing plugin/assembly: MaxMind.Db (/AMP/Plugins/MaxMind.Db/MaxMind.Db.dll) for
[05:43:43] [Loader Info/1] : GenericModule requests dependency steamcmdplugin…
[05:43:43] [Loader Info/1] : Loaded steamcmdplugin by CubeCoders Limited
[05:43:43] [Loader Info/1] : GenericModule requests dependency RCONPlugin…
[05:43:43] [Loader Info/1] : Loaded RCONPlugin by CubeCoders Limited
[05:43:44] [FileManager Notice/1] : No SSH keypair available for embedded server, generating new keypair…
[05:43:44] [FileManager Notice/1] : Generated new keypair with fingerprint ySDJn6A65eTFd8xBJHG/tLCfrkUhp53dPB2MEu4Zjcw=
[05:43:44] [Loader Notice/1] : Using keypair with fingerprint ySDJn6A65eTFd8xBJHG/tLCfrkUhp53dPB2MEu4Zjcw=
[05:43:45] [Loader Info/1] : SFTP Server started on 0.0.0.0:2223
[05:43:45] [Core Warning/1] : Expected licence feature RunAMP is not present.
[05:43:45] [Core Error/1] : No valid AMP licence was found. Please open a shell as the ‘amp’ user and run ampinstmgr reactivate Aloft01 to reactivate this instance.
[05:43:45] [Core Info/1] : Available features: )
[05:43:45] [Core Info/1] : Active Licences:

Looks like there are some issues with the licensing on this one. Specifically, AMP isn’t finding a valid license for the instance in question. Let’s fix that:

  1. Open a shell or command prompt as your AMP instance manager user.
  2. Run this command to reactivate the instance:
    ampinstmgr reactivate Aloft01
    
    (Replace Aloft01 with your actual instance name if it’s different.)

Once done, restart the instance and check if it’s resolved. If not, or if it yells at you some more, let me know!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Why does the first log file after installing the instance show License Present: AMP Professional Edition - Lifetime License and then says No valid AMP license was found. Please open a shell as the ‘amp’ user and run ampinstmgr reactivate Aloft01 to reactivate this instance.

Yeah, that’s a bit of a head-scratcher initially, but here’s the deal: When you first set up an instance, AMP does a quick license validation during setup (which it passed the first time). Then, post-setup, it tries to confirm again—possibly checking in with the license server. If there’s even a minor connection hiccup or DNS issue, AMP throws that “No valid license found” error.

It’s like AMP saying “Cool, I’ve got a license… wait, do I really? Uh-oh, no I don’t.”

Running ampinstmgr reactivate <InstanceName> should fix this little identity crisis for good. Let me know how it goes! :smile:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

PS C:\Users\enix> ampinstmgr reactivate Aloft01
[Info/1] AMP Instance Manager v2.5.0.12 built 30/05/2024 00:03
[Info/1] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[Error/1] Failed to read instance data: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path ‘[0].AMPVersion’, line 23, position 28.
於 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
於 InstanceManagerPlugin.LocalInstanceManager.VersionObjectConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
於 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
於 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
於 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
於 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
於 InstanceManagerPlugin.LocalInstanceManager.GetLocalInstances(String AlternateDefsPath)
Please enter value for Licence Key

Ah, classic JSON meltdown! That error is AMP basically tripping over itself while reading an instance config file. Most likely, the configuration or metadata for that instance got corrupted somewhere along the line.

Here’s the move:

  1. Check your AMP install version.
    It looks like the system is running AMP v2.5.0.12 while your instance logs say AMP 2.6.0.12. That mismatch will absolutely cause chaos. Update AMP Instance Manager first to 2.6.0.x to match your instances.

    • To update AMP on Windows:
      • Download the latest installer from the CubeCoders website.
      • Run it, ensuring it updates your AMP Instance Manager properly.
  2. After updating:
    Try reactivating the instance again with ampinstmgr reactivate <InstanceName>.

  3. If the issue persists even after syncing versions:
    It might require rebuilding the instance metadata manually, but let’s cross that bridge if we have to. Let me know how the update goes first! :rocket:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

The version displayed on the Support and Updates page is Hooray! AMP is up-to-date. Currently running version 2.6.0.12 - 20250224.1 What went wrong? If you want to re-download, please give me the download link.

Alright, that “Hooray!” message means AMP itself is up to date—but your ampinstmgr (the instance manager) isn’t playing catch-up. They’re two separate components, and it looks like the manager is lagging behind at version 2.5.0.12.

To fix this:

  1. Download the latest installer:
    Click here for the AMP installer.

  2. Run the installer and make sure it updates the instance manager (watch for any prompts or messages about upgrading).

After the update, we’ll retry that reactivate command. Tell AMP to stop giving you grief! :sweat_smile:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback