Build images:
docker built -t tag/name .
List Images:
docker images
Check Process RUN:
docker ps
Check Process ALL:
docker ps -a
Docker run Daemon Mode :
docker run -d -p 80:5000 images/name
Docker run and delete when Stop Container:
docker run --rm -d -p 80:5000 images/name (daemon mode)
docker run --rm -it -p 80:5000 images/name (run and show terminal)
Connect to Container
docker exec -it docker_instance_id shell_in_container
Docker Save Images:
docker save images_name > images_name.tar
docker save -o images_name.tar images_name
Docker Load Images:
docker load < test_save.tar
docker load -i test_save.tar
Docker Copy :
docker cp filename container_id:/path_to_file/file
docker cp container_id:/path_to_file/file src_file/file
On Python FLASK
Dockerfile Example:
from python
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
ENV FLASK_APP=app.py
ENV FLASK_DEBUG=1
CMD flask run --host=0.0.0.0
Monday, July 1, 2019
Subscribe to:
Post Comments (Atom)
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => &...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...
-
``` sda: add missing path sda: failed to get udev uid: Invalid argument sda: failed to get sysfs uid: Invalid argument sda: failed to ge...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.