While playing with compose I had the need to manually run an Alpine container:
Spin up docker container
1 | docker run -i -v /test-vol --name=voltainer alpine:3.7 /bin/sh |
Also see docker-commands -> Interactive processes (like a shell)
Update/Upgrade then install GIT
1 | apk update |
Create/List directory
1 | mkdir data |
Clone GIT
1 | git clone https://github.com/carlpaton/SQLStatements.git data |
Copy to docker volume
1 | cp data/ComposeDemo/*.sql /test-vol |
List installed packages
1 | apk info |
Exit interactive session
1 | CTRL D |