WebHostingAce
Silver Pleskian
Username:
TITLE
Docker: invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.66 Update #2
Web Pro Edition
AlmaLinux 8.10 (Cerulean Leopard)
PROBLEM DESCRIPTION
Updating the Docker settings via the Plesk interface after Docker has been started through the CLI results in the error:
'invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit'
STEPS TO REPRODUCE
Start Docker via the CLI with the required Ulimit configuration:
Then, go to the Plesk interface and try to update the 'Automatic start after system reboot' setting for this Docker container or any other setting
ACTUAL RESULT
Error Message: "invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit" is displayed.
The setting will not be updated.
EXPECTED RESULT
Settings to be successfully updated.
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Docker: invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.66 Update #2
Web Pro Edition
AlmaLinux 8.10 (Cerulean Leopard)
PROBLEM DESCRIPTION
Updating the Docker settings via the Plesk interface after Docker has been started through the CLI results in the error:
'invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit'
STEPS TO REPRODUCE
Start Docker via the CLI with the required Ulimit configuration:
Code:
#docker run --name=varnish-2 --ulimit memlock=-1 -p 127.0.0.1:32782:80 -p 127.0.0.1:7443:8443 -v /root/varnish/conf:/etc/varnish/ varnish:7.6.1
Then, go to the Plesk interface and try to update the 'Automatic start after system reboot' setting for this Docker container or any other setting
ACTUAL RESULT
Error Message: "invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit" is displayed.
The setting will not be updated.
EXPECTED RESULT
Settings to be successfully updated.
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug