I have some basic questions about fundamental groups that came up when I tried to prove a few things: I am sorry that they are kind of informal questions, but I could not find any answers to them in my texbook and I think it may be good to know these kind of things.
If I have a set $A$ and a set $B$, such that $A \subset B$, does the canonical embedding always mean that there is a homomorphism $\pi_1(A) \rightarrow \pi_1(B)$ between the fundamental groups?
In principle fundamental groups for a set are defined with respect to a point. What is the exact condition under which you can talk about the fundamental group of a set rather than of a particular point? I guess it is sufficient that the set is connected, but maybe path-connected is necessary?
If I have a disc $D^2 \subset \mathbb{R}^2$ and want to find a surjective continuous map $f$ into the sphere $S^1$. Can such a map exist? The thing is that I was wondering whether this may result in problems with the fundamental groups: $\pi_1(D^2)=0$ and $\pi_1(S^1)= \mathbb{Z}$. So, if $f$ is a continuous map with a special property like being (surjective, injective, bijective, etc., a homeomorphism) do any of these kind of property result in nice properties of the homomorphism?
Any function $f : X \to Y$ induces a homomorphism on fundamental groups $f_* : \pi_1(X, x_0) \to \pi_1(Y, f(x_0))$. If a space is path-connected, the fundamental group is unaffected by the choice of the base point. This is why the base point is sometimes omitted.
In general, injectivity and surjectivity are not preserved when passing to homomorphisms.
Consider the inclusion $S^1 \hookrightarrow \Bbb R^2$. This map is injective, but the induced homomorphism sends $\pi_1(S^1) \cong \Bbb Z$ to the trivial group; hence it cannot be injective.
Consider the map $S^1 \to S^1$, $z \mapsto z^2$. This map is surjective but the induced homomorphism is multiplication by $2$. Hence it's not surjective.
However, passing to homomorphisms respects function composition. In other words, if $h = g \circ f$, then $h_* = g_* \circ f_*$. This is used to show that no retraction exists from $D^2$ to $S^1$ as you hint in your question. Let $i : S^1 \to D^2$ be the inclusion, and $r : D^2 \to S^1$ be a retraction. Since $\Bbb 1_{S^1} = r \circ i$, the same is true for induced homomorphisms: $\Bbb 1_{S^1*} = r_* \circ i_*$. This means that $i_*$ is injective and $r_*$ is surjective. At the same time, $r_* : \pi_1(D^2) \to \pi_1(S^1)$ is trivial since $\pi_1(D^2)$ is trivial. This results in a contradiction.