Skip to content
Snippets Groups Projects

How to Run a container and stop it from existing

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Ahmed Amine Mchayaa

    A Compose to run any container without it crashing to access it through the terminal

    Edited
    docker-compose.yml 155 B
    version: '3'
    services:
      cuda-container:
        image: nvidia/cuda:12.2.2-devel-ubuntu22.04
        tty: true
        stdin_open: true
        command: tail -f /dev/null
    0% or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment