docker 安裝 memcached

$ # install the memcached $ docker run -i -t ubuntu:12.04 apt-get -y install memcached $ # use docker ps -a to find the container_id $ docker ps -a $ # commit the container $ docker commit container_id lmj/memcached $ # run it $ docker run -d -p 11211 lmj/memcached memcached -u daemon $ # show the expose port $ docker port container_id 11211 $ # show the container info $ docker inspect container_id
相關文章
相關標籤/搜索