Skip to content

Docker image's root passwd #1884

Answered by Harshil2107
PengXuanyao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

By default, the Docker image runs as root, so you don't need sudo. You can directly install packages using:

apt install <package-name>

If you want an interactive session with automatic cleanup, you can use:

docker run -it --rm ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PengXuanyao
Comment options

Answer selected by Harshil2107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants