Skip to content

Getting into an Alpine based container with Docker


There are times when you want to go inside a Docker container and use a shell. Normally, you would use the following command to enter the container, but on the Alpine base, you would use ash instead of bash to enter the container.

$ docker run --rm -t -i centos:centos7 /bin/bash


$ docker run --rm -t -i alpine:latest /bin/ash

Dockerコンテナのシェルの中に入る dockerでalpine linux ベースのcontainerに入って、shellを使いたいとき。

  1. Use Docker to set up PostgreSQL and create tables.
  2. Docker image that can be SSHed in(CentOS7)
  3. Docker image that can be SSHed in(CentOS6)