Thursday | 21 NOV 2024
[ previous ]
[ next ]

Docker Commands

Title:
Date: 2023-08-09
Tags:  sysadmin

docker pull i386/alpine
docker run -dit i386/alpine
docker ps -a
CONTAINER ID   IMAGE                      COMMAND                  CREATED         STATUS                          PORTS     NAMES
d285e42f37b8   i386/alpine                "/bin/sh"                3 seconds ago   Up 2 seconds                              frosty_newton
docker attach frosty_newton
docker start --interactive frosty_newton
docker cp ./scarlet.tar zen_mccarthy
docker ps --size
CONTAINER ID   IMAGE                      COMMAND                  CREATED         STATUS                          PORTS     NAMES              SIZE
6128ba626b22   i386/alpine                "/bin/sh"                3 minutes ago   Up 3 minutes                              zen_mccarthy       20.8MB (virtual 27MB)