Skip to content

Commit 239f243

Browse files
authored
[Elastic Agent] Fix docker entrypoint for elastic-agent. (#24155)
* Fix docker entrypoint for elastic-agent. * Add changelog entry.
1 parent daa4471 commit 239f243

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dev-tools/packaging/templates/docker/docker-entrypoint.elastic-agent.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function enroll(){
6363
insecure_flag="--insecure"
6464
fi
6565

66-
./{{ .BeatName }} enroll ${insecure_flag} ${KIBANA_HOST:-http://localhost:5601} $apikey -f
66+
./{{ .BeatName }} enroll ${insecure_flag} -f --url=${KIBANA_HOST:-http://localhost:5601} --enrollment-token=$apikey
6767
}
6868

6969
if [[ -n "${FLEET_SETUP}" ]] && [[ ${FLEET_SETUP} == 1 ]]; then setup; fi

x-pack/elastic-agent/CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
- Fix libbeat from reporting back degraded on config update {pull}23537[23537]
4141
- Fix issues with dynamic inputs and conditions {pull}23886[23886]
4242
- Fix bad substitution of API key. {pull}24036[24036]
43+
- Fix docker enrollment issue related to Fleet Server change. {pull}24155[24155]
4344

4445
==== New features
4546

0 commit comments

Comments
 (0)