Docker 学习之路 – Amazon EC2 in VPS

/ 0评 / 0

Docker Hub默认的版本有很多东西没有安装,跟真的Amazon Linux AMI有差异,下面补上,然后要什么端口,自己映射一下就好了.当然洁癖患者还是用官方的就可以了.证书要自己生成...

Dockerfile 如下:

FROM amazonlinux

RUN yum install -y 

	 acl.x86_64 

	 acpid.x86_64 

	 alsa-lib.x86_64 

	 amazon-ssm-agent.x86_64 

	 at.x86_64 

	 attr.x86_64 

	 audit.x86_64 

	 audit-libs.x86_64 

	 authconfig.x86_64 

	 autogen-libopts.x86_64 

	 aws-amitools-ec2.noarch 

	 aws-apitools-as.noarch 

	 aws-apitools-common.noarch 

	 aws-apitools-ec2.noarch 

	 aws-apitools-elb.noarch 

	 aws-apitools-mon.noarch 

	 aws-cfn-bootstrap.noarch 

	 aws-cli.noarch 

	 basesystem.noarch 

	 bash.x86_64 

	 bc.x86_64 

	 bind-libs.x86_64 

	 bind-utils.x86_64 

	 binutils.x86_64 

	 bzip2.x86_64 

	 bzip2-libs.x86_64 

	 ca-certificates.noarch 

	 checkpolicy.x86_64 

	 chkconfig.x86_64 

	 cloud-disk-utils.noarch 

	 cloud-init.noarch 

	 coreutils.x86_64 

	 cpio.x86_64 

	 cracklib.x86_64 

	 cracklib-dicts.x86_64 

	 cronie.x86_64 

	 cronie-anacron.x86_64 

	 crontabs.noarch 

	 cryptsetup.x86_64 

	 cryptsetup-libs.x86_64 

	 curl.x86_64 

	 cyrus-sasl.x86_64 

	 cyrus-sasl-lib.x86_64 

	 cyrus-sasl-plain.x86_64 

	 dash.x86_64 

	 db4.x86_64 

	 db4-utils.x86_64 

	 dbus.x86_64 

	 dbus-libs.x86_64 

	 dejavu-fonts-common.noarch 

	 dejavu-sans-fonts.noarch 

	 dejavu-serif-fonts.noarch 

	 device-mapper.x86_64 

	 device-mapper-event.x86_64 

	 device-mapper-event-libs.x86_64 

	 device-mapper-libs.x86_64 

	 device-mapper-persistent-data.x86_64 

	 dhclient.x86_64 

	 dhcp-common.x86_64 

	 diffutils.x86_64 

	 dmraid.x86_64 

	 dmraid-events.x86_64 

	 dracut.noarch 

	 dracut-modules-growroot.noarch 

	 dump.x86_64 

	 e2fsprogs.x86_64 

	 e2fsprogs-libs.x86_64 

	 ec2-net-utils.noarch 

	 ec2-utils.noarch 

	 ed.x86_64 

	 elfutils-libelf.x86_64 

	 epel-release.noarch 

	 ethtool.x86_64 

	 expat.x86_64 

	 file.x86_64 

	 file-libs.x86_64 

	 filesystem.x86_64 

	 findutils.x86_64 

	 fipscheck.x86_64 

	 fipscheck-lib.x86_64 

	 fontconfig.x86_64 

	 fontpackages-filesystem.noarch 

	 freetype.x86_64 

	 gawk.x86_64 

	 gdbm.x86_64 

	 gdisk.x86_64 

	 generic-logos.noarch 

	 get_reference_source.noarch 

	 giflib.x86_64 

	 glib2.x86_64 

	 glibc.x86_64 

	 glibc-common.x86_64 

	 gmp.x86_64 

	 gnupg2.x86_64 

	 gpgme.x86_64 

	 gpm-libs.x86_64 

	 grep.x86_64 

	 groff.x86_64 

	 groff-base.x86_64 

	 grub.x86_64 

	 grubby.x86_64 

	 gzip.x86_64 

	 hesiod.x86_64 

	 hmaccalc.x86_64 

	 hwdata.noarch 

	 info.x86_64 

	 initscripts.x86_64 

	 iproute.x86_64 

	 iptables.x86_64 

	 iputils.x86_64 

	 irqbalance.x86_64 

	 java-1.7.0-openjdk.x86_64 

	 javapackages-tools.noarch 

	 jpackage-utils.noarch 

	 kbd.x86_64 

	 kbd-misc.noarch 

	 kernel.x86_64 

	 kernel-tools.x86_64 

	 keyutils.x86_64 

	 keyutils-libs.x86_64 

	 kmod.x86_64 

	 kmod-libs.x86_64 

	 kpartx.x86_64 

	 krb5-libs.x86_64 

	 lcms2.x86_64 

	 less.x86_64 

	 libICE.x86_64 

	 libSM.x86_64 

	 libX11.x86_64 

	 libX11-common.x86_64 

	 libXau.x86_64 

	 libXcomposite.x86_64 

	 libXext.x86_64 

	 libXfont.x86_64 

	 libXi.x86_64 

	 libXrender.x86_64 

	 libXtst.x86_64 

	 libacl.x86_64 

	 libaio.x86_64 

	 libassuan.x86_64 

	 libattr.x86_64 

	 libblkid.x86_64 

	 libcap.x86_64 

	 libcap-ng.x86_64 

	 libcgroup.x86_64 

	 libcom_err.x86_64 

	 libcurl.x86_64 

	 libedit.x86_64 

	 libevent.x86_64 

	 libffi.x86_64 

	 libfontenc.x86_64 

	 libgcc64.x86_64 

	 libgcrypt.x86_64 

	 libgpg-error.x86_64 

	 libgssglue.x86_64 

	 libicu.x86_64 

	 libidn.x86_64 

	 libidn2.x86_64 

	 libjpeg-turbo.x86_64 

	 libmount.x86_64 

	 libnfsidmap.x86_64 

	 libnghttp2.x86_64 

	 libnih.x86_64 

	 libnl.x86_64 

	 libpipeline.x86_64 

	 libpng.x86_64 

	 libpsl.x86_64 

	 libpwquality.x86_64 

	 libselinux.x86_64 

	 libselinux-utils.x86_64 

	 libsemanage.x86_64 

	 libsepol.x86_64 

	 libss.x86_64 

	 libssh2.x86_64 

	 libstdc++64.x86_64 

	 libsysfs.x86_64 

	 libtasn1.x86_64 

	 libtirpc.x86_64 

	 libudev.x86_64 

	 libunistring.x86_64 

	 libuser.x86_64 

	 libutempter.x86_64 

	 libuuid.x86_64 

	 libverto.x86_64 

	 libxcb.x86_64 

	 libxml2.x86_64 

	 libxml2-python27.x86_64 

	 libxslt.x86_64 

	 libyaml.x86_64 

	 logrotate.x86_64 

	 lsof.x86_64 

	 lua.x86_64 

	 lvm2.x86_64 

	 lvm2-libs.x86_64 

	 mailcap.noarch 

	 make.x86_64 

	 man-db.x86_64 

	 man-pages.noarch 

	 mdadm.x86_64 

	 mingetty.x86_64 

	 nano.x86_64 

	 nc.x86_64 

	 ncurses.x86_64 

	 ncurses-base.x86_64 

	 ncurses-libs.x86_64 

	 net-tools.x86_64 

	 newt.x86_64 

	 newt-python27.x86_64 

	 nfs-utils.x86_64 

	 nspr.x86_64 

	 nss.x86_64 

	 nss-softokn.x86_64 

	 nss-softokn-freebl.x86_64 

	 nss-sysinit.x86_64 

	 nss-tools.x86_64 

	 nss-util.x86_64 

	 ntp.x86_64 

	 ntpdate.x86_64 

	 ntsysv.x86_64 

	 numactl.x86_64 

	 openldap.x86_64 

	 openssh.x86_64 

	 openssh-clients.x86_64 

	 openssh-server.x86_64 

	 openssl.x86_64 

	 p11-kit.x86_64 

	 p11-kit-trust.x86_64 

	 pam.x86_64 

	 pam_ccreds.x86_64 

	 pam_krb5.x86_64 

	 pam_passwdqc.x86_64 

	 parted.x86_64 

	 passwd.x86_64 

	 pciutils.x86_64 

	 pciutils-libs.x86_64 

	 pcre.x86_64 

	 perl.x86_64 

	 perl-Carp.noarch 

	 perl-Digest.noarch 

	 perl-Digest-HMAC.noarch 

	 perl-Digest-MD5.x86_64 

	 perl-Digest-SHA.x86_64 

	 perl-Encode.x86_64 

	 perl-Exporter.noarch 

	 perl-File-Path.noarch 

	 perl-File-Temp.noarch 

	 perl-Filter.x86_64 

	 perl-Getopt-Long.noarch 

	 perl-HTTP-Tiny.noarch 

	 perl-PathTools.x86_64 

	 perl-Pod-Escapes.noarch 

	 perl-Pod-Perldoc.noarch 

	 perl-Pod-Simple.noarch 

	 perl-Pod-Usage.noarch 

	 perl-Scalar-List-Utils.x86_64 

	 perl-Socket.x86_64 

	 perl-Storable.x86_64 

	 perl-Text-ParseWords.noarch 

	 perl-Time-HiRes.x86_64 

	 perl-Time-Local.noarch 

	 perl-constant.noarch 

	 perl-libs.x86_64 

	 perl-macros.x86_64 

	 perl-parent.noarch 

	 perl-podlators.noarch 

	 perl-threads.x86_64 

	 perl-threads-shared.x86_64 

	 pinentry.x86_64 

	 pkgconfig.x86_64 

	 policycoreutils.x86_64 

	 popt.x86_64 

	 procmail.x86_64 

	 procps.x86_64 

	 psacct.x86_64 

	 psmisc.x86_64 

	 pth.x86_64 

	 python27.x86_64 

	 python27-PyYAML.x86_64 

	 python27-babel.noarch 

	 python27-backports.x86_64 

	 3.4.0.2-1.12.amzn1 

	 python27-boto.noarch 

	 python27-botocore.noarch 

	 python27-chardet.noarch 

	 python27-colorama.noarch 

	 python27-configobj.noarch 

	 python27-crypto.x86_64 

	 python27-daemon.noarch 

	 python27-dateutil.noarch 

	 python27-devel.x86_64 

	 python27-docutils.noarch 

	 python27-ecdsa.noarch 

	 python27-futures.noarch 

	 python27-imaging.x86_64 

	 python27-iniparse.noarch 

	 python27-jinja2.noarch 

	 python27-jmespath.noarch 

	 python27-jsonpatch.noarch 

	 python27-jsonpointer.noarch 

	 python27-kitchen.noarch 

	 python27-libs.x86_64 

	 python27-lockfile.noarch 

	 python27-markupsafe.x86_64 

	 python27-paramiko.noarch 

	 python27-pip.noarch 

	 python27-ply.noarch 

	 python27-pyasn1.noarch 

	 python27-pycurl.x86_64 

	 python27-pygpgme.x86_64 

	 python27-pyliblzma.x86_64 

	 python27-pystache.noarch 

	 python27-pyxattr.x86_64 

	 python27-requests.noarch 

	 python27-rsa.noarch 

	 python27-setuptools.noarch 

	 python27-simplejson.x86_64 

	 python27-six.noarch 

	 python27-urlgrabber.noarch 

	 python27-urllib3.noarch 

	 python27-virtualenv.noarch 

	 quota.x86_64 

	 quota-nls.noarch 

	 readline.x86_64 

	 rmt.x86_64 

	 rng-tools.x86_64 

	 rootfiles.noarch 

	 rpcbind.x86_64 

	 rpm.x86_64 

	 rpm-build-libs.x86_64 

	 rpm-libs.x86_64 

	 rpm-python27.x86_64 

	 rsync.x86_64 

	 rsyslog.x86_64 

	 ruby.noarch 

	 ruby20.x86_64 

	 ruby20-irb.noarch 

	 ruby20-libs.x86_64 

	 rubygem20-bigdecimal.x86_64 

	 rubygem20-json.x86_64 

	 rubygem20-psych.x86_64 

	 rubygem20-rdoc.noarch 

	 rubygems20.noarch 

	 screen.x86_64 

	 sed.x86_64 

	 sendmail.x86_64 

	 setserial.x86_64 

	 setup.noarch 

	 sgpio.x86_64 

	 shadow-utils.x86_64 

	 shared-mime-info.x86_64 

	 slang.x86_64 

	 sqlite.x86_64 

	 sudo.x86_64 

	 sysctl-defaults.noarch 

	 sysfsutils.x86_64 

	 system-release.noarch 

	 sysvinit.x86_64 

	 tar.x86_64 

	 tcp_wrappers.x86_64 

	 tcp_wrappers-libs.x86_64 

	 time.x86_64 

	 tmpwatch.x86_64 

	 traceroute.x86_64 

	 ttmkfdir.x86_64 

	 tzdata.noarch 

	 tzdata-java.noarch 

	 udev.x86_64 

	 unzip.x86_64 

	 update-motd.noarch 

	 upstart.x86_64 

	 ustr.x86_64 

	 util-linux.x86_64 

	 vim-common.x86_64 

	 vim-enhanced.x86_64 

	 vim-filesystem.x86_64 

	 vim-minimal.x86_64 

	 wget.x86_64 

	 which.x86_64 

	 words.noarch 

	 xorg-x11-font-utils.x86_64 

	 xorg-x11-fonts-Type1.noarch 

	 xz.x86_64 

	 xz-libs.x86_64 

	 yum.noarch 

	 yum-metadata-parser.x86_64 

	 yum-plugin-priorities.noarch 

	 yum-plugin-upgrade-helper.noarch 

	 yum-utils.noarch 

	 zip.x86_64 

	 zlib.x86_64 

	;

RUN /usr/sbin/groupadd --gid 500 ec2-user && 

	/usr/sbin/useradd --uid 500 --gid 500 --comment "EC2 Default User" -m ec2-user

CMD ["/bin/bash"]

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注