From 26620cb3d5ce640d5714e4987d3f032f69d2b997 Mon Sep 17 00:00:00 2001 From: aisensiy Date: Wed, 24 Sep 2014 12:07:25 +0800 Subject: [PATCH 1/2] mysqld to httpd --- image/create.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/create.md b/image/create.md index 26d5979..db60997 100644 --- a/image/create.md +++ b/image/create.md @@ -108,7 +108,7 @@ Successfully built 324104cde6ad ``` # put my local web site in myApp folder to /var/www ADD myApp /var/www -# expose mysqld port +# expose httpd port EXPOSE 80 # the command to run CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"] From 08ed01831af6ecb50ef84dc9d72f086dae26e8a7 Mon Sep 17 00:00:00 2001 From: aisensiy Date: Wed, 24 Sep 2014 12:27:00 +0800 Subject: [PATCH 2/2] docker save is used to save image and docker export is used to export container --- image/save_load.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/save_load.md b/image/save_load.md index c2d497a..0eaa8dc 100644 --- a/image/save_load.md +++ b/image/save_load.md @@ -8,7 +8,7 @@ REPOSITORY TAG IMAGE ID CREATED ubuntu latest 826544226fdc 2 weeks ago 194.2 MB ouruser/sinatra v2 51619aaca804 2 weeks ago 373.3 MB ubuntu 14.04 c4ff7513909d 5 weeks ago 225.4 MB -$sudo docker export ubuntu:14.04 > ubuntu_14.04.tar +$sudo docker save -o ubuntu_14.04.tar ubuntu:14.04 ```