Execution command not editible in docker manager

Discussion about Docker
User avatar
mculumov
Posts: 1
Joined: 22 Sep 2024, 01:40
Croatia

Execution command not editible in docker manager

Post by mculumov »

Hello,
why "Execution Command" is not editible in Docker Manager prior to launching container?
Thank you!
TMpzhen

Re: Execution command not editible in docker manager

Post by TMpzhen »

mculumov wrote: 22 Sep 2024, 01:45
Modifying the execution command usually requires specifying it at the image level or through parameters when starting the container. A container that has already been configured cannot be used to edit and execute commands when it is disabled. The execution commands can only be modified by starting the container。
User avatar
bugacha
Posts: 59
Joined: 09 Nov 2024, 16:25
Algeria

Re: Execution command not editible in docker manager

Post by bugacha »

TMpzhen wrote: 22 Sep 2024, 16:23
mculumov wrote: 22 Sep 2024, 01:45
Modifying the execution command usually requires specifying it at the image level or through parameters when starting the container. A container that has already been configured cannot be used to edit and execute commands when it is disabled. The execution commands can only be modified by starting the container。
Can you please explain in more details ?

I downloaded iperf3 container that has entry point iperf3 which will never work (needs either -s or -c flags)

Container is not running, I press edit and go to Execution Command and its not modifiable.

The only way to fix this is by stopping DockerEngine and modifying config.v2.json directly.

Can this be fixed in UI please ?
User avatar
bugacha
Posts: 59
Joined: 09 Nov 2024, 16:25
Algeria

Re: Execution command not editible in docker manager

Post by bugacha »

Here is the screenshot


Image
TMpzhen

Re: Execution command not editible in docker manager

Post by TMpzhen »

bugacha wrote: 09 Nov 2024, 16:29
What command are you modifying in config2json? Is it a command for detailed performance configuration of containers?
User avatar
bugacha
Posts: 59
Joined: 09 Nov 2024, 16:25
Algeria

Re: Execution command not editible in docker manager

Post by bugacha »

TMpzhen wrote: 09 Nov 2024, 17:52
bugacha wrote: 09 Nov 2024, 16:29
What command are you modifying in config2json? Is it a command for detailed performance configuration of containers?
I need to provide arguments to entry point from screenshot

I'm modifying 2 places :

Code: Select all

"Path":"iperf3","Args":["-s"]
"Entrypoint":["iperf3","-s"]

Same problem with Minio container. If you download and run it, it never starts up because of invalid command line

Command line supposed to look like this

Code: Select all

"Path":"/usr/bin/docker-entrypoint.sh","Args":["minio","server","/data","--console-address",":9090"]
"Cmd":["minio","server","/data","--console-address",":9090"]

Do you guys even test containers when release stuff ??
User avatar
bugacha
Posts: 59
Joined: 09 Nov 2024, 16:25
Algeria

Re: Execution command not editible in docker manager

Post by bugacha »

Just to be precise, only Args needs to be changed to provide arguments to entry point

Code: Select all

  "Path": "iperf3",
  "Args": [
    "-s"
  ],
User avatar
TMzethar
TM Support
Posts: 2819
Joined: 27 Oct 2020, 16:43

Re: Execution command not editible in docker manager

Post by TMzethar »

The implementation of your request in the UI is not currently supported and the project team will discuss ways to improve it.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
bugacha
Posts: 59
Joined: 09 Nov 2024, 16:25
Algeria

Re: Execution command not editible in docker manager

Post by bugacha »

TMzethar wrote: 10 Nov 2024, 18:50 The implementation of your request in the UI is not currently supported and the project team will discuss ways to improve it.
Thank you, it will be very helpful !

For your reference at least 2 containers require it from the strat :

iperf3
minio

(Top entry in registry)

Synology DSM supports editing command line arguments too
User avatar
tommi2day
Posts: 56
Joined: 10 Jan 2023, 02:15
Germany

Re: Execution command not editible in docker manager

Post by tommi2day »

You may consider to use a docker-compose.yml (a project) style configuration. For minio mine looks like this. Variables may be set this way or using env-file

Code: Select all

services:

  minio:
    image: ${MINIO_IMAGE_NAME}
    container_name: $DOCKER_NAME
    volumes:
      - $DOCKER_SHARED/$DOCKER_NAME:/data:z
    command: minio server /data --console-address 0.0.0.0:9001
    environment:
      - MINIO_ROOT_USER=${MINIO_ROOT_USER}
      - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
      - MINIO_REGION_NAME=${MINIO_REGION_NAME}
      - MINIO_BROWSER=${MINIO_BROWSER}
      - MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL}
    restart: always
    networks:
      - proxy
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"

      - "traefik.http.middlewares.minio-gzip.compress=true"
      - "traefik.http.middlewares.minio-redir-https.redirectScheme.scheme=https"

      - "traefik.http.routers.minio-http.entrypoints=http"
      - "traefik.http.routers.minio-http.rule=Host(`${MINIO_HOST}`)"
      - "traefik.http.routers.minio-http.middlewares=minio-redir-https"
      - "traefik.http.routers.minio-http.service=minio-backend"

      - "traefik.http.routers.minio-https.middlewares=minio-gzip"
      - "traefik.http.routers.minio-https.entrypoints=https"
      - "traefik.http.routers.minio-https.tls=true"
      - "traefik.http.routers.minio-https.rule=Host(`${MINIO_HOST}`)"
      - "traefik.http.routers.minio-https.service=minio-backend"

      - "traefik.http.routers.minio-admin.middlewares=minio-gzip"
      - "traefik.http.routers.minio-admin.entrypoints=https"
      - "traefik.http.routers.minio-admin.tls=true"
      - "traefik.http.routers.minio-admin.rule=Host(`${MINIO_ADMIN_DOMAIN}`)"
      - "traefik.http.routers.minio-admin.service=minio-admin-backend"

      - "traefik.http.services.minio-backend.loadbalancer.server.scheme=http"
      - "traefik.http.services.minio-backend.loadbalancer.server.port=9000"

      - "traefik.http.services.minio-admin-backend.loadbalancer.server.scheme=http"
      - "traefik.http.services.minio-admin-backend.loadbalancer.server.port=9001"
    extra_hosts:
      - "${MINIO_HOST}:0.0.0.0"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 3s
      retries: 12
    logging:
      driver: "json-file"
      options:
        max-size: "10m"

networks:
  proxy:
    external: true
main: T9-450
Locked

Return to “Docker”