Docker for devs with hands-on| Part-3

docker image pull ubuntu
docker container run ubuntu
docker container run -it ubuntu
apt-get update && apt-get install git
docker container ls -a
docker container start 98ff2ff01546
docker container logs 98ff2ff01546
docker container logs -f 98ff2ff01546
docker container exec -it <container_id> bash
apt-cache search jdk
apt-get update && apt-get install -y openjdk-8-jdk
javac -version
docker container commit -a “Ubuntu + JDK + Git image” 98 ubuJdkGitAdityaImage
docker container stop 98
docker container ls -a
docker container rm <container_id>
docker container ls -a
docker images
docker container run -it ubu-jdk-git-aditya-image
docker container ls -a
docker container start <container_id>
docker container exec -it <container_id> bash

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store