Docker
List Images
$ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu_apache temp abcdefg1 1 months ago 272.9 MB centos7 latest abcdefg2 23 months ago 344.7 MB centos latest abcdefg3 2 years ago 237.1 MB
docker run
$ docker run -itd ubuntu_apache:temp /bin/bash 0123456789abcdef $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0123456789ab ubuntu_apache:temp "/bin/bash" 7 seconds ago Up 5 seconds 80/tcp hogebar
$ docker exec -it 0123456789ab /bin/bash root@0123456789ab:/# index.phpファイルの内容を確認 root@0123456789ab:/# cat /var/www/index.php hello
Dockerfile :simple httpd
For AWS Fargate