How do i run a docker container interactively?



  • Man page for docker run.

    Run a shell in a alpine linux container.

    $ docker run -it alpine /bin/sh       
    Unable to find image 'alpine:latest' locally
    latest: Pulling from library/alpine
    cd784148e348: Already exists 
    Digest: sha256:46e71df1e5191ab8b8034c5189e325258ec44ea739bba1e5645cff83c9048ff1
    Status: Downloaded newer image for alpine:latest
    / # 
    

Log in to reply
 

© Lightnetics 2024