Flashcards
3 Docker run
Cards in this deck (12)
- 1Run redis container version 4.0docker run redis:4.0
- 2How to view versions of image?dockerhub.com look for tags
- 3Run some-docker image of alibala in interactive modedocker run -i alibala/some_docker
- 4Run some-docker image of alibala in interactive mode (this time attach to container terminal)docker run -it alibala/some_docker
- 5How can a user access docker web application from docker host?by using IP of docker container or
by using IP of docker host - 6What should be done in order to access docker web app using IP of Docker host?map port of docker container to port of host
- 7Map port 80 of host to port 5000 of kodekloud/webapp docker containerdocker run -p 80:5000 kodekloud/webapp
- 8What do you need to do in order to persist data o docker container?You need to map directory outside docker container to inside directory
- 9Map /opt/datadir direcory which is outside container to directory /var/lib/mysql directory inside my sql containerdocker run -v /opt/datadir:/var/lib/mysql mysql
- 10View detailed information about docker contianer in json formatdocker inspect
- 11view logs of docker containerdocker logs
- 12View version of Ubuntu in dockerdocker run ubuntu cat /etc/*release*
Information
- Description
- Easy Kodekloud Docker basics Flashcards on 3 Docker run, created by Archimed Nemes on 22/12/2022.
- Created by
- Archimed Nemes
- Views
- 0
- Rating