[sonic-buildimage] Fix debug docker run instruction. (#5151)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
This commit is contained in:
abdosi 2020-08-13 13:30:48 -07:00 committed by GitHub
parent 3fee094760
commit c98734c63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,7 +243,7 @@ _Recommend: Rename image built using INSTALL_DEBUG_TOOLS=y to mark it explicit.
* To debug a core file in non-SONiC environment that supports docker * To debug a core file in non-SONiC environment that supports docker
* `docker load -i docker-<name>-dbg.gz` * `docker load -i docker-<name>-dbg.gz`
* copy your unzipped core file into ~/debug * copy your unzipped core file into ~/debug
* `docker run -it -entrypoint=/bin/bash -v ~/debug:/debug <image id>` * `docker run -it --entrypoint=/bin/bash -v ~/debug:/debug <image id>`
* `gdb /usr/bin/<your binary> -c /debug/<your core>` * `gdb /usr/bin/<your binary> -c /debug/<your core>`
### Debug SONiC image ### Debug SONiC image