@noosphere/agent-core 0.1.0-alpha.5 → 0.1.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -308,7 +308,7 @@ var ContainerManager = class {
308
308
  const startTime = Date.now();
309
309
  try {
310
310
  const port = container.port ? parseInt(container.port) : 8081;
311
- const containerHost = process.env.DOCKER_NETWORK ? `noosphere-${container.id}` : "localhost";
311
+ const containerHost = process.env.DOCKER_NETWORK ? `noosphere-${container.name}` : "localhost";
312
312
  const url = `http://${containerHost}:${port}/computation`;
313
313
  let requestBody;
314
314
  try {
@@ -512,7 +512,7 @@ var ContainerManager = class {
512
512
  * Start a persistent container that stays running
513
513
  */
514
514
  async startPersistentContainer(containerId, metadata) {
515
- const containerName = `noosphere-${containerId}`;
515
+ const containerName = `noosphere-${metadata.name}`;
516
516
  const imageTag = `${metadata.image}:${metadata.tag || "latest"}`;
517
517
  try {
518
518
  const existingContainer = this.docker.getContainer(containerName);