| by Scott Kilroy | No comments

Remove a local docker image

When you run “docker images” you’ll get results that look something like this REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu latest 1d073211c498 2 weeks ago 187.9 MB To remove a image type “docker rmi -f IMAGE_ID (the 3rd column above). Warning this is permanent.

Read More
| by Scott Kilroy | No comments

Prepare a docker container for AWS (elastic beanstalk)

cd to the directory containing your exported docker files, then run zip ../FILENAME.zip -r * .[^.]* This way kind of sucks, looking for a better way to do it.

Read More
| by Scott Kilroy | No comments

List your local and running docker images and containers

To list your installed docker images run docker images To list your running docker containers run docker ps

Read More
| by Scott Kilroy | No comments

Docker installation documentation

Docker installation information can be found at http://docs.docker.com/engine/installation/

Read More
| by Scott Kilroy | No comments

Install a linux distro on docker

Unbuntu docker run –rm -ti ubuntu:latest /bin/bash Fedora docker run –rm -ti fedora:latest /bin/bash CentOS docker run –rm -ti centos:latest /bin/bash

Read More
| by Scott Kilroy | No comments

Inspect your local docker images

docker inspect IMAGENAME

Read More
| by Scott Kilroy | No comments

Get docker host ip

run echo $DOCKER_HOST

Read More
| by Scott Kilroy | No comments

Export a docker container

Export a container (for use with amazon web services for example) by running the following command: docker export CONTAINERNAME > NAME.tar for example docker export fsk-apache > fsk-apache.tar

Read More
| by Scott Kilroy | No comments

Build a docker base image

See docker documentation http://docs.docker.com/engine/articles/baseimages/

Read More
| by Scott Kilroy | No comments

Build your docker image

docker build -t GROUPNAME/DOCKERPAGENAME:VERSION DIRECTORY so for example docker build -t example/ docker-node-hello:latest .

Read More
| by Scott Kilroy | No comments

Installing docker

If you’re using linux you can install docker by doing the following: ubuntu apt-get install docker.io sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker Fedora yum -y install docker-io Mac OSX Install the docker toolbox Windows Also has a tool box but I’ve never used it. Docker Cheatsheet https://github.com/wsargent/docker-cheat-sheet

Read More