Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify port number when deploying Static Docker container #3505

Closed
Haroon-Khel opened this issue Apr 5, 2024 · 0 comments · Fixed by #3511
Closed

Specify port number when deploying Static Docker container #3505

Haroon-Khel opened this issue Apr 5, 2024 · 0 comments · Fixed by #3511
Assignees
Labels

Comments

@Haroon-Khel
Copy link
Contributor

Haroon-Khel commented Apr 5, 2024

ref #3352 (comment)

Docker will randomly assign a port number when one is not specified, but if docker or the dockerhost machine is rebooted, the port numbers will be randomly assigned again which will dysync the containers from their jenkins nodes

The change needs to be made to the dockernode.yml playbook

command: docker run --restart unless-stopped -p 22 --cpuset-cpus="0-3" --memory=6G --detach --name {{ docker_image | upper }}.PORT aqa_{{ docker_image }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
1 participant