Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added argument --network=host + description

...

docker run \
    -it \
    --workdir /home \
    --name='ubuntu_test' \
    --network=host \
    ubuntu:22.04

Where:

  • -it  - to run image with interactive console (input && output)
  • --workdir /home  - is to set current directory in the docker instance
  • --name='ubuntu_test'  - instance name
  • --network=host - it is option to make possible easy communication between host and guest inside machine (like virtuall another computer in local network)
  • ubuntu:22.04  - image from docker-hub "ubuntu" version "22.04"

...